summaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/android')
-rw-r--r--src/android/app/build.gradle.kts47
-rw-r--r--src/android/app/src/main/AndroidManifest.xml5
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.kt54
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/YuzuApplication.kt10
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt184
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/GameAdapter.kt13
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/HomeSettingAdapter.kt11
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/SoftwareKeyboard.kt29
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/DiskShaderCacheProgress.kt5
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/disk_shader_cache/ui/ShaderProgressDialogFragment.kt4
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/DocumentProvider.kt89
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt2
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/IntSetting.kt12
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/Settings.kt7
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SingleChoiceSetting.kt1
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SliderSetting.kt6
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/StringSingleChoiceSetting.kt5
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/SubmenuSetting.kt2
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivity.kt37
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsActivityPresenter.kt12
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsAdapter.kt1
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragment.kt9
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt31
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/DateTimeViewHolder.kt8
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SwitchSettingViewHolder.kt2
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/utils/SettingsFile.kt19
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AboutFragment.kt10
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EarlyAccessFragment.kt10
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt231
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt26
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/ImportExportSavesFragment.kt27
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/IndeterminateProgressDialogFragment.kt1
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/LicensesFragment.kt4
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SearchFragment.kt19
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt23
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/layout/AutofitGridLayoutManager.kt4
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt24
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/GamesViewModel.kt5
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlay.kt327
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableDpad.kt5
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableJoystick.kt28
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/GamesFragment.kt8
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt96
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ControllerMappingHelper.kt4
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/DirectoryInitialization.kt2
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/DocumentsTree.kt17
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/EmulationMenuSettings.kt18
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/FileUtil.kt4
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ForegroundService.kt2
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GameHelper.kt2
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt4
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverMetadata.kt4
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InputHandler.kt19
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/InsetsHelper.kt12
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/NfcReader.kt21
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/SerializableHelper.kt20
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ThemeHelper.kt14
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/views/FixedRatioSurfaceView.kt6
-rw-r--r--src/android/app/src/main/jni/config.cpp8
-rw-r--r--src/android/app/src/main/jni/default_ini.h6
-rw-r--r--src/android/app/src/main/jni/native.cpp99
-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_system_update_alt.xml9
-rw-r--r--src/android/app/src/main/res/layout/activity_emulation.xml16
-rw-r--r--src/android/app/src/main/res/layout/fragment_emulation.xml82
-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.xml14
-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-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-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.xml12
-rw-r--r--src/android/app/src/main/res/values/integers.xml64
-rw-r--r--src/android/app/src/main/res/values/strings.xml25
-rw-r--r--src/android/app/src/main/res/xml/locales_config.xml17
-rw-r--r--src/android/build.gradle.kts9
87 files changed, 6195 insertions, 514 deletions
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts
index d4698ae1c..7ae538cf9 100644
--- a/src/android/app/build.gradle.kts
+++ b/src/android/app/build.gradle.kts
@@ -2,12 +2,17 @@
// 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"
}
/**
@@ -42,24 +47,27 @@ android {
jniLibs.useLegacyPackaging = true
}
- lint {
- // This is important as it will run lint but not abort on error
- // Lint has some overly obnoxious "errors" that should really be warnings
- abortOnError = false
-
- //Uncomment disable lines for test builds...
- //disable 'MissingTranslation'bin
- //disable 'ExtraTranslation'
- }
-
defaultConfig {
// TODO If this is ever modified, change application_id in strings.xml
applicationId = "org.yuzu.yuzu_emu"
minSdk = 30
targetSdk = 33
- versionCode = 1
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")
@@ -152,6 +160,23 @@ android {
}
}
+tasks.getByPath("preBuild").dependsOn("ktlintCheck")
+
+ktlint {
+ version.set("0.47.0")
+ android.set(true)
+ ignoreFailures.set(false)
+ disabledRules.set(
+ setOf(
+ "no-wildcard-imports",
+ "package-name"
+ )
+ )
+ reporters {
+ reporter(ReporterType.CHECKSTYLE)
+ }
+}
+
dependencies {
implementation("androidx.core:core-ktx:1.10.1")
implementation("androidx.appcompat:appcompat:1.6.1")
diff --git a/src/android/app/src/main/AndroidManifest.xml b/src/android/app/src/main/AndroidManifest.xml
index 1e92098ec..a6f87fc2e 100644
--- a/src/android/app/src/main/AndroidManifest.xml
+++ b/src/android/app/src/main/AndroidManifest.xml
@@ -24,6 +24,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
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"
@@ -52,8 +53,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
<activity
android:name="org.yuzu.yuzu_emu.activities.EmulationActivity"
android:theme="@style/Theme.Yuzu.Main"
- android:launchMode="singleTop"
- android:screenOrientation="userLandscape"
+ android:supportsPictureInPicture="true"
+ android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|uiMode"
android:exported="true">
<intent-filter>
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
index 22af9e435..f860cdd4b 100644
--- 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
@@ -14,16 +14,18 @@ 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
-import java.lang.ref.WeakReference
/**
* Class which contains methods that interact
@@ -74,7 +76,9 @@ object NativeLibrary {
fun openContentUri(path: String?, openmode: String?): Int {
return if (isNativePath(path!!)) {
YuzuApplication.documentsTree!!.openContentUri(path, openmode)
- } else openContentUri(appContext, path, openmode)
+ } else {
+ openContentUri(appContext, path, openmode)
+ }
}
@Keep
@@ -82,7 +86,29 @@ object NativeLibrary {
fun getSize(path: String?): Long {
return if (isNativePath(path!!)) {
YuzuApplication.documentsTree!!.getFileSize(path)
- } else getFileSize(appContext, 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)
+ }
}
/**
@@ -227,6 +253,8 @@ object NativeLibrary {
external fun setAppDirectory(directory: String)
+ external fun installFileToNand(filename: String): Int
+
external fun initializeGpuDriver(
hookLibDir: String?,
customDriverDir: String?,
@@ -281,6 +309,11 @@ object NativeLibrary {
external fun isRunning(): Boolean
/**
+ * Returns true if emulation is paused.
+ */
+ external fun isPaused(): Boolean
+
+ /**
* Returns the performance stats for the current game
*/
external fun getPerfStats(): DoubleArray
@@ -429,7 +462,9 @@ object NativeLibrary {
Html.FROM_HTML_MODE_LEGACY
)
)
- .setPositiveButton(android.R.string.ok) { _: DialogInterface?, _: Int -> emulationActivity.finish() }
+ .setPositiveButton(android.R.string.ok) { _: DialogInterface?, _: Int ->
+ emulationActivity.finish()
+ }
.setOnDismissListener { emulationActivity.finish() }
emulationActivity.runOnUiThread {
val alert = builder.create()
@@ -507,4 +542,15 @@ object NativeLibrary {
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
index 4c947b786..04ab6a220 100644
--- 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
@@ -7,12 +7,12 @@ 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
-import java.io.File
-fun Context.getPublicFilesDir() : File = getExternalFilesDir(null) ?: filesDir
+fun Context.getPublicFilesDir(): File = getExternalFilesDir(null) ?: filesDir
class YuzuApplication : Application() {
private fun createNotificationChannels() {
@@ -21,7 +21,9 @@ class YuzuApplication : Application() {
getString(R.string.emulation_notification_channel_name),
NotificationManager.IMPORTANCE_LOW
)
- emulationChannel.description = getString(R.string.emulation_notification_channel_description)
+ emulationChannel.description = getString(
+ R.string.emulation_notification_channel_description
+ )
emulationChannel.setSound(null, null)
emulationChannel.vibrationPattern = null
@@ -48,7 +50,7 @@ class YuzuApplication : Application() {
GpuDriverHelper.initializeDriverParameters(applicationContext)
NativeLibrary.logDeviceInfo()
- createNotificationChannels();
+ createNotificationChannels()
}
companion object {
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
index 20a0394f5..f0a6753a9 100644
--- 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
@@ -4,14 +4,23 @@
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
@@ -23,30 +32,27 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.WindowCompat
import androidx.core.view.WindowInsetsCompat
import androidx.core.view.WindowInsetsControllerCompat
-import androidx.lifecycle.Lifecycle
-import androidx.lifecycle.lifecycleScope
-import androidx.lifecycle.repeatOnLifecycle
-import androidx.window.layout.WindowInfoTracker
-import kotlinx.coroutines.Dispatchers
-import kotlinx.coroutines.launch
+import androidx.navigation.fragment.NavHostFragment
+import kotlin.math.roundToInt
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.fragments.EmulationFragment
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.NfcReader
-import org.yuzu.yuzu_emu.utils.SerializableHelper.parcelable
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 var emulationFragment: EmulationFragment? = null
private lateinit var nfcReader: NfcReader
private lateinit var inputHandler: InputHandler
@@ -55,7 +61,8 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
private var motionTimestamp: Long = 0
private var flipMotionOrientation: Boolean = false
- private lateinit var game: Game
+ private val actionPause = "ACTION_EMULATOR_PAUSE"
+ private val actionPlay = "ACTION_EMULATOR_PLAY"
private val settingsViewModel: SettingsViewModel by viewModels()
@@ -70,47 +77,31 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
settingsViewModel.settings.loadSettings()
super.onCreate(savedInstanceState)
- if (savedInstanceState == null) {
- // Get params we were passed
- game = intent.parcelable(EXTRA_SELECTED_GAME)!!
- isActivityRecreated = false
- } else {
- isActivityRecreated = true
- restoreState(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()
- setContentView(R.layout.activity_emulation)
window.decorView.setBackgroundColor(getColor(android.R.color.black))
- // Find or create the EmulationFragment
- emulationFragment =
- supportFragmentManager.findFragmentById(R.id.frame_emulation_fragment) as EmulationFragment?
- if (emulationFragment == null) {
- emulationFragment = EmulationFragment.newInstance(game)
- supportFragmentManager.beginTransaction()
- .add(R.id.frame_emulation_fragment, emulationFragment!!)
- .commit()
- }
- title = game.title
-
nfcReader = NfcReader(this)
nfcReader.initialize()
inputHandler = InputHandler()
inputHandler.initialize()
- lifecycleScope.launch(Dispatchers.Main) {
- lifecycle.repeatOnLifecycle(Lifecycle.State.STARTED) {
- WindowInfoTracker.getOrCreate(this@EmulationActivity)
- .windowLayoutInfo(this@EmulationActivity)
- .collect { emulationFragment?.updateCurrentLayout(this@EmulationActivity, it) }
- }
- }
-
// Start a foreground service to prevent the app from getting killed in the background
val startIntent = Intent(this, ForegroundService::class.java)
startForegroundService(startIntent)
@@ -143,6 +134,8 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
super.onResume()
nfcReader.startScanning()
startMotionSensorListener()
+
+ buildPictureInPictureParams()
}
override fun onPause() {
@@ -151,17 +144,22 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
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 onSaveInstanceState(outState: Bundle) {
- outState.putParcelable(EXTRA_SELECTED_GAME, game)
- super.onSaveInstanceState(outState)
- }
-
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
@@ -248,10 +246,6 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
override fun onAccuracyChanged(sensor: Sensor, i: Int) {}
- private fun restoreState(savedInstanceState: Bundle) {
- game = savedInstanceState.parcelable(EXTRA_SELECTED_GAME)!!
- }
-
private fun enableFullscreenImmersive() {
WindowCompat.setDecorFitsSystemWindows(window, false)
@@ -262,6 +256,100 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
}
}
+ 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)
+ }
+
+ 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()
+ }
+ buildPictureInPictureParams()
+ }
+ }
+
+ override fun onPictureInPictureModeChanged(
+ isInPictureInPictureMode: Boolean,
+ newConfig: Configuration
+ ) {
+ super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig)
+ if (isInPictureInPictureMode) {
+ IntentFilter().apply {
+ addAction(actionPause)
+ addAction(actionPlay)
+ }.also {
+ registerReceiver(pictureInPictureReceiver, it)
+ }
+ } else {
+ try {
+ unregisterReceiver(pictureInPictureReceiver)
+ } catch (ignored: Exception) {
+ }
+ }
+ }
+
private fun startMotionSensorListener() {
val sensorManager = this.getSystemService(Context.SENSOR_SERVICE) as SensorManager
val gyroSensor = sensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE)
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
index 7f9e2e2d4..e91277d35 100644
--- 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
@@ -16,6 +16,7 @@ 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
@@ -23,13 +24,13 @@ 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.activities.EmulationActivity
import org.yuzu.yuzu_emu.model.Game
-import org.yuzu.yuzu_emu.adapters.GameAdapter.GameViewHolder
import org.yuzu.yuzu_emu.model.GamesViewModel
class GameAdapter(private val activity: AppCompatActivity) :
@@ -58,7 +59,10 @@ class GameAdapter(private val activity: AppCompatActivity) :
override fun onClick(view: View) {
val holder = view.tag as GameViewHolder
- val gameExists = DocumentFile.fromSingleUri(YuzuApplication.appContext, Uri.parse(holder.game.path))?.exists() == true
+ val gameExists = DocumentFile.fromSingleUri(
+ YuzuApplication.appContext,
+ Uri.parse(holder.game.path)
+ )?.exists() == true
if (!gameExists) {
Toast.makeText(
YuzuApplication.appContext,
@@ -78,7 +82,8 @@ class GameAdapter(private val activity: AppCompatActivity) :
)
.apply()
- EmulationActivity.launch(activity, holder.game)
+ val action = HomeNavigationDirections.actionGlobalEmulationActivity(holder.game)
+ view.findNavController().navigate(action)
}
inner class GameViewHolder(val binding: CardGameBinding) :
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
index b719dd539..d3df3bc81 100644
--- 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
@@ -58,11 +58,12 @@ class HomeSettingAdapter(private val activity: AppCompatActivity, var options: L
)
when (option.titleId) {
- R.string.get_early_access -> binding.optionLayout.background =
- ContextCompat.getDrawable(
- binding.optionCard.context,
- R.drawable.premium_background
- )
+ 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/applets/keyboard/SoftwareKeyboard.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/applets/keyboard/SoftwareKeyboard.kt
index 82a6712b6..e058067c9 100644
--- 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
@@ -12,10 +12,10 @@ 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
-import java.io.Serializable
@Keep
object SoftwareKeyboard {
@@ -40,19 +40,22 @@ object SoftwareKeyboard {
// 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
- }
+ 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())
+ // No longer visible, submit the result.
+ NativeLibrary.submitInlineKeyboardInput(KeyEvent.KEYCODE_ENTER)
+ }
+ },
+ delayMs.toLong()
+ )
}
@JvmStatic
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
index 3b1559c80..a18efef19 100644
--- 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
@@ -20,7 +20,10 @@ object DiskShaderCacheProgress {
emulationActivity.getString(R.string.loading),
emulationActivity.getString(R.string.preparing_shaders)
)
- fragment.show(emulationActivity.supportFragmentManager, ShaderProgressDialogFragment.TAG)
+ fragment.show(
+ emulationActivity.supportFragmentManager,
+ ShaderProgressDialogFragment.TAG
+ )
}
synchronized(finishLock) { finishLock.wait() }
}
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
index 2c68c9ac3..8a8e0a6e8 100644
--- 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
@@ -62,7 +62,9 @@ class ShaderProgressDialogFragment : DialogFragment() {
shaderProgressViewModel.message.observe(viewLifecycleOwner) { msg ->
alertDialog.setMessage(msg)
}
- synchronized(DiskShaderCacheProgress.finishLock) { DiskShaderCacheProgress.finishLock.notifyAll() }
+ synchronized(DiskShaderCacheProgress.finishLock) {
+ DiskShaderCacheProgress.finishLock.notifyAll()
+ }
}
override fun onDestroyView() {
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
index 4c3a9ca80..f3be156b5 100644
--- 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
@@ -13,11 +13,11 @@ 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
-import java.io.*
class DocumentProvider : DocumentsProvider() {
private val baseDirectory: File
@@ -44,7 +44,7 @@ class DocumentProvider : DocumentsProvider() {
DocumentsContract.Document.COLUMN_SIZE
)
- const val AUTHORITY : String = BuildConfig.APPLICATION_ID + ".user"
+ const val AUTHORITY: String = BuildConfig.APPLICATION_ID + ".user"
const val ROOT_ID: String = "root"
}
@@ -58,7 +58,11 @@ class DocumentProvider : DocumentsProvider() {
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")
+ if (!file.exists()) {
+ throw FileNotFoundException(
+ "${file.absolutePath} ($documentId) not found"
+ )
+ }
return file
} else {
throw FileNotFoundException("'$documentId' is not in any known root")
@@ -80,7 +84,8 @@ class DocumentProvider : DocumentsProvider() {
add(DocumentsContract.Root.COLUMN_SUMMARY, null)
add(
DocumentsContract.Root.COLUMN_FLAGS,
- DocumentsContract.Root.FLAG_SUPPORTS_CREATE or DocumentsContract.Root.FLAG_SUPPORTS_IS_CHILD
+ 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))
@@ -127,11 +132,13 @@ class DocumentProvider : DocumentsProvider() {
try {
if (DocumentsContract.Document.MIME_TYPE_DIR == mimeType) {
- if (!newFile.mkdir())
+ if (!newFile.mkdir()) {
throw IOException("Failed to create directory")
+ }
} else {
- if (!newFile.createNewFile())
+ if (!newFile.createNewFile()) {
throw IOException("Failed to create file")
+ }
}
} catch (e: IOException) {
throw FileNotFoundException("Couldn't create document '${newFile.path}': ${e.message}")
@@ -142,8 +149,9 @@ class DocumentProvider : DocumentsProvider() {
override fun deleteDocument(documentId: String?) {
val file = getFile(documentId!!)
- if (!file.delete())
+ if (!file.delete()) {
throw FileNotFoundException("Couldn't delete document with ID '$documentId'")
+ }
}
override fun removeDocument(documentId: String, parentDocumentId: String?) {
@@ -151,38 +159,55 @@ class DocumentProvider : DocumentsProvider() {
val file = getFile(documentId)
if (parent == file || file.parentFile == null || file.parentFile!! == parent) {
- if (!file.delete())
+ 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")
+ 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")
+ ?: 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}'")
+ 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}")
+ throw FileNotFoundException(
+ "Couldn't rename document from '${sourceFile.name}' to '${destFile.name}': " +
+ "${e.message}"
+ )
}
return getDocumentId(destFile)
}
private fun copyDocument(
- sourceDocumentId: String, sourceParentDocumentId: String,
+ sourceDocumentId: String,
+ sourceParentDocumentId: String,
targetParentDocumentId: String?
): String {
- if (!isChildDocument(sourceParentDocumentId, sourceDocumentId))
- throw FileNotFoundException("Couldn't copy document '$sourceDocumentId' as its parent is not '$sourceParentDocumentId'")
+ if (!isChildDocument(sourceParentDocumentId, sourceDocumentId)) {
+ throw FileNotFoundException(
+ "Couldn't copy document '$sourceDocumentId' as its parent is not " +
+ "'$sourceParentDocumentId'"
+ )
+ }
return copyDocument(sourceDocumentId, targetParentDocumentId)
}
@@ -193,8 +218,13 @@ class DocumentProvider : DocumentsProvider() {
val newFile = parent.resolveWithoutConflict(oldFile.name)
try {
- if (!(newFile.createNewFile() && newFile.setWritable(true) && newFile.setReadable(true)))
+ if (!(
+ newFile.createNewFile() && newFile.setWritable(true) &&
+ newFile.setReadable(true)
+ )
+ ) {
throw IOException("Couldn't create new file")
+ }
FileInputStream(oldFile).use { inStream ->
FileOutputStream(newFile).use { outStream ->
@@ -209,12 +239,14 @@ class DocumentProvider : DocumentsProvider() {
}
override fun moveDocument(
- sourceDocumentId: String, sourceParentDocumentId: String?,
+ sourceDocumentId: String,
+ sourceParentDocumentId: String?,
targetParentDocumentId: String?
): String {
try {
val newDocumentId = copyDocument(
- sourceDocumentId, sourceParentDocumentId!!,
+ sourceDocumentId,
+ sourceParentDocumentId!!,
targetParentDocumentId
)
removeDocument(sourceDocumentId, sourceParentDocumentId)
@@ -245,24 +277,30 @@ class DocumentProvider : DocumentsProvider() {
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
+ 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)
+ if (localFile == baseDirectory) {
add(DocumentsContract.Root.COLUMN_ICON, R.drawable.ic_yuzu)
+ }
}
return cursor
}
private fun getTypeForFile(file: File): Any {
- return if (file.isDirectory)
+ return if (file.isDirectory) {
DocumentsContract.Document.MIME_TYPE_DIR
- else
+ } else {
getTypeForName(file.name)
+ }
}
private fun getTypeForName(name: String): Any {
@@ -270,8 +308,9 @@ class DocumentProvider : DocumentsProvider() {
if (lastDot >= 0) {
val extension = name.substring(lastDot + 1)
val mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension)
- if (mime != null)
+ if (mime != null) {
return mime
+ }
}
return "application/octect-stream"
}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt
index 3dfd66779..63b4df273 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt
@@ -8,6 +8,7 @@ enum class BooleanSetting(
override val section: String,
override val defaultValue: Boolean
) : AbstractBooleanSetting {
+ 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
@@ -27,6 +28,7 @@ enum class BooleanSetting(
companion object {
private val NOT_RUNTIME_EDITABLE = listOf(
+ PICTURE_IN_PICTURE,
USE_CUSTOM_RTC
)
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
index c5722a5a1..4427a7d9d 100644
--- 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
@@ -26,13 +26,18 @@ enum class IntSetting(
RENDERER_FORCE_MAX_CLOCK(
"force_max_clock",
Settings.SECTION_RENDERER,
- 1
+ 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,
@@ -88,6 +93,11 @@ enum class IntSetting(
Settings.SECTION_RENDERER,
0
),
+ RENDERER_SCREEN_LAYOUT(
+ "screen_layout",
+ Settings.SECTION_RENDERER,
+ Settings.LayoutOption_MobileLandscape
+ ),
RENDERER_ASPECT_RATIO(
"aspect_ratio",
Settings.SECTION_RENDERER,
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/Settings.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/Settings.kt
index 8df20b928..88afb2223 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/Settings.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/Settings.kt
@@ -4,11 +4,11 @@
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
-import java.util.*
class Settings {
private var gameId: String? = null
@@ -133,7 +133,6 @@ class Settings {
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_LANDSCAPE = "EmulationMenuSettings_LandscapeScreenLayout"
const val PREF_MENU_SETTINGS_SHOW_FPS = "EmulationMenuSettings_ShowFps"
const val PREF_MENU_SETTINGS_SHOW_OVERLAY = "EmulationMenuSettings_ShowOverlay"
@@ -144,6 +143,10 @@ class Settings {
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(
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
index 9eac9904e..7306ec458 100644
--- 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
@@ -4,7 +4,6 @@
package org.yuzu.yuzu_emu.features.settings.model.view
import org.yuzu.yuzu_emu.features.settings.model.AbstractIntSetting
-import org.yuzu.yuzu_emu.features.settings.model.IntSetting
class SingleChoiceSetting(
setting: AbstractIntSetting?,
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
index 842648ce4..92d0167ae 100644
--- 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
@@ -3,13 +3,11 @@
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.features.settings.model.FloatSetting
-import org.yuzu.yuzu_emu.features.settings.model.IntSetting
import org.yuzu.yuzu_emu.utils.Log
-import kotlin.math.roundToInt
class SliderSetting(
setting: AbstractSetting?,
@@ -19,7 +17,7 @@ class SliderSetting(
val max: Int,
val units: String,
val key: String? = null,
- val defaultValue: Int? = null,
+ val defaultValue: Int? = null
) : SettingsItem(setting, titleId, descriptionId) {
override val type = TYPE_SLIDER
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
index 9e9b00d10..bad34fd88 100644
--- 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
@@ -5,7 +5,6 @@ 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
-import org.yuzu.yuzu_emu.features.settings.model.StringSetting
class StringSingleChoiceSetting(
val key: String? = null,
@@ -22,7 +21,9 @@ class StringSingleChoiceSetting(
if (valuesId == null) return null
return if (index >= 0 && index < valuesId.size) {
valuesId[index]
- } else ""
+ } else {
+ ""
+ }
}
val selectedValue: String
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
index a3ef59c2f..8a9d13a92 100644
--- 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
@@ -3,8 +3,6 @@
package org.yuzu.yuzu_emu.features.settings.model.view
-import org.yuzu.yuzu_emu.features.settings.model.AbstractSetting
-
class SubmenuSetting(
titleId: Int,
descriptionId: Int,
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
index 72e2cce2a..a5af5a7ae 100644
--- 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
@@ -8,17 +8,18 @@ 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 android.view.ViewGroup.MarginLayoutParams
-import androidx.activity.OnBackPressedCallback
import androidx.core.view.updatePadding
import com.google.android.material.color.MaterialColors
-import org.yuzu.yuzu_emu.NativeLibrary
+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
@@ -29,7 +30,6 @@ 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.*
-import java.io.IOException
class SettingsActivity : AppCompatActivity(), SettingsActivityView {
private val presenter = SettingsActivityPresenter(this)
@@ -59,7 +59,9 @@ class SettingsActivity : AppCompatActivity(), SettingsActivityView {
setSupportActionBar(binding.toolbarSettings)
supportActionBar!!.setDisplayHomeAsUpEnabled(true)
- if (InsetsHelper.getSystemGestureType(applicationContext) != InsetsHelper.GESTURE_NAVIGATION) {
+ if (InsetsHelper.getSystemGestureType(applicationContext) !=
+ InsetsHelper.GESTURE_NAVIGATION
+ ) {
binding.navigationBarShade.setBackgroundColor(
ThemeHelper.getColorWithOpacity(
MaterialColors.getColor(
@@ -75,7 +77,8 @@ class SettingsActivity : AppCompatActivity(), SettingsActivityView {
this,
object : OnBackPressedCallback(true) {
override fun handleOnBackPressed() = navigateBack()
- })
+ }
+ )
setInsets()
}
@@ -148,11 +151,13 @@ class SettingsActivity : AppCompatActivity(), SettingsActivityView {
private fun areSystemAnimationsEnabled(): Boolean {
val duration = android.provider.Settings.Global.getFloat(
contentResolver,
- android.provider.Settings.Global.ANIMATOR_DURATION_SCALE, 1f
+ android.provider.Settings.Global.ANIMATOR_DURATION_SCALE,
+ 1f
)
val transition = android.provider.Settings.Global.getFloat(
contentResolver,
- android.provider.Settings.Global.TRANSITION_ANIMATION_SCALE, 1f
+ android.provider.Settings.Global.TRANSITION_ANIMATION_SCALE,
+ 1f
)
return duration != 0f && transition != 0f
}
@@ -207,7 +212,9 @@ class SettingsActivity : AppCompatActivity(), SettingsActivityView {
get() = supportFragmentManager.findFragmentByTag(FRAGMENT_TAG) as SettingsFragment?
private fun setInsets() {
- ViewCompat.setOnApplyWindowInsetsListener(binding.frameContent) { view: View, windowInsets: WindowInsetsCompat ->
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.frameContent
+ ) { view: View, windowInsets: WindowInsetsCompat ->
val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
view.updatePadding(
@@ -239,5 +246,17 @@ class SettingsActivity : AppCompatActivity(), SettingsActivityView {
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
index 4361d95fb..93e677b21 100644
--- 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
@@ -6,12 +6,12 @@ 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
-import java.io.File
class SettingsActivityPresenter(private val activityView: SettingsActivityView) {
val settings: Settings get() = activityView.settings
@@ -46,9 +46,15 @@ class SettingsActivityPresenter(private val activityView: SettingsActivityView)
private fun prepareDirectoriesIfNeeded() {
val configFile =
- File(DirectoryInitialization.userDirectory + "/config/" + SettingsFile.FILE_NAME_CONFIG + ".ini")
+ File(
+ "${DirectoryInitialization.userDirectory}/config/" +
+ "${SettingsFile.FILE_NAME_CONFIG}.ini"
+ )
if (!configFile.exists()) {
- Log.error(DirectoryInitialization.userDirectory + "/config/" + SettingsFile.FILE_NAME_CONFIG + ".ini")
+ Log.error(
+ "${DirectoryInitialization.userDirectory}/config/" +
+ "${SettingsFile.FILE_NAME_CONFIG}.ini"
+ )
Log.error("yuzu config file could not be found!")
}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsAdapter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsAdapter.kt
index 1eb4899fc..eac6a134b 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsAdapter.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsAdapter.kt
@@ -13,7 +13,6 @@ import android.view.ViewGroup
import android.widget.TextView
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
-import androidx.fragment.app.setFragmentResultListener
import androidx.recyclerview.widget.RecyclerView
import com.google.android.material.datepicker.MaterialDatePicker
import com.google.android.material.dialog.MaterialAlertDialogBuilder
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
index 867147950..70a74c4dd 100644
--- 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
@@ -50,7 +50,10 @@ class SettingsFragment : Fragment(), SettingsFragmentView {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
settingsAdapter = SettingsAdapter(this, requireActivity())
- val dividerDecoration = MaterialDividerItemDecoration(requireContext(), LinearLayoutManager.VERTICAL)
+ val dividerDecoration = MaterialDividerItemDecoration(
+ requireContext(),
+ LinearLayoutManager.VERTICAL
+ )
dividerDecoration.isLastItemDecorated = false
binding.listSettings.apply {
adapter = settingsAdapter
@@ -99,7 +102,9 @@ class SettingsFragment : Fragment(), SettingsFragmentView {
}
private fun setInsets() {
- ViewCompat.setOnApplyWindowInsetsListener(binding.listSettings) { view: View, windowInsets: WindowInsetsCompat ->
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.listSettings
+ ) { view: View, windowInsets: WindowInsetsCompat ->
val insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
view.updatePadding(bottom = insets.bottom)
windowInsets
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt
index 061046b2e..c8c85dd7a 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt
@@ -7,7 +7,6 @@ import android.content.SharedPreferences
import android.os.Build
import android.text.TextUtils
import androidx.preference.PreferenceManager
-import com.google.android.material.dialog.MaterialAlertDialogBuilder
import org.yuzu.yuzu_emu.R
import org.yuzu.yuzu_emu.YuzuApplication
import org.yuzu.yuzu_emu.features.settings.model.AbstractBooleanSetting
@@ -166,6 +165,15 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
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
+ )
+ )
}
}
@@ -227,7 +235,6 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
private fun addGraphicsSettings(sl: ArrayList<SettingsItem>) {
settingsActivity.setToolbarTitle(settingsActivity.getString(R.string.preferences_graphics))
sl.apply {
-
add(
SingleChoiceSetting(
IntSetting.RENDERER_ACCURACY,
@@ -285,6 +292,17 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
)
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,
@@ -321,6 +339,15 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
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
+ )
+ )
}
}
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
index 04c045e77..7955532ee 100644
--- 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
@@ -4,15 +4,15 @@
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.DateTimeSetting
-import org.yuzu.yuzu_emu.features.settings.model.view.SettingsItem
-import org.yuzu.yuzu_emu.features.settings.ui.SettingsAdapter
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) {
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
index b163bd6ca..54f531795 100644
--- 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
@@ -6,8 +6,8 @@ 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.SwitchSetting
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) :
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
index e29bca11d..20a0636df 100644
--- 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
@@ -3,6 +3,8 @@
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
@@ -13,8 +15,6 @@ 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
-import java.io.*
-import java.util.*
/**
* Contains static methods for interacting with .ini files in which settings are stored.
@@ -137,9 +137,12 @@ object SettingsFile {
for (settingKey in sortedKeySet) {
val setting = settings[settingKey]
NativeLibrary.setUserSetting(
- gameId, mapSectionNameFromIni(
+ gameId,
+ mapSectionNameFromIni(
section.name
- ), setting!!.key, setting.valueAsString
+ ),
+ setting!!.key,
+ setting.valueAsString
)
}
}
@@ -148,13 +151,17 @@ object SettingsFile {
private fun mapSectionNameFromIni(generalSectionName: String): String? {
return if (sectionsMap.getForward(generalSectionName) != null) {
sectionsMap.getForward(generalSectionName)
- } else generalSectionName
+ } else {
+ generalSectionName
+ }
}
private fun mapSectionNameToIni(generalSectionName: String): String {
return if (sectionsMap.getBackward(generalSectionName) != null) {
sectionsMap.getBackward(generalSectionName).toString()
- } else generalSectionName
+ } else {
+ generalSectionName
+ }
}
fun getSettingsFile(fileName: String): File {
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
index c92e2755c..2ff827c6b 100644
--- 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
@@ -66,7 +66,11 @@ class AboutFragment : Fragment() {
true
}
- binding.buttonContributors.setOnClickListener { openLink(getString(R.string.contributors_link)) }
+ 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)
@@ -101,7 +105,9 @@ class AboutFragment : Fragment() {
}
private fun setInsets() =
- ViewCompat.setOnApplyWindowInsetsListener(binding.root) { _: View, windowInsets: WindowInsetsCompat ->
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.root
+ ) { _: View, windowInsets: WindowInsetsCompat ->
val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
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
index d8bbc1ce4..dbc16da4a 100644
--- 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
@@ -49,7 +49,11 @@ class EarlyAccessFragment : Fragment() {
parentFragmentManager.primaryNavigationFragment?.findNavController()?.popBackStack()
}
- binding.getEarlyAccessButton.setOnClickListener { openLink(getString(R.string.play_store_link)) }
+ binding.getEarlyAccessButton.setOnClickListener {
+ openLink(
+ getString(R.string.play_store_link)
+ )
+ }
setInsets()
}
@@ -60,7 +64,9 @@ class EarlyAccessFragment : Fragment() {
}
private fun setInsets() =
- ViewCompat.setOnApplyWindowInsetsListener(binding.root) { _: View, windowInsets: WindowInsetsCompat ->
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.root
+ ) { _: View, windowInsets: WindowInsetsCompat ->
val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
index 9523381cd..42e2e5b75 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
@@ -7,30 +7,39 @@ 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.Resources
+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.util.TypedValue
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.updatePadding
+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
@@ -41,9 +50,8 @@ 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.model.Game
+import org.yuzu.yuzu_emu.overlay.InputOverlay
import org.yuzu.yuzu_emu.utils.*
-import org.yuzu.yuzu_emu.utils.SerializableHelper.parcelable
class EmulationFragment : Fragment(), SurfaceHolder.Callback {
private lateinit var preferences: SharedPreferences
@@ -54,13 +62,43 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
private var _binding: FragmentEmulationBinding? = null
private val binding get() = _binding!!
- private lateinit var game: Game
+ 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()
+ ) {
+ 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()
+ updateScreenLayout()
+ }
} else {
throw IllegalStateException("EmulationFragment must have EmulationActivity parent")
}
@@ -75,8 +113,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
// So this fragment doesn't restart on configuration changes; i.e. rotation.
retainInstance = true
preferences = PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
- game = requireArguments().parcelable(EmulationActivity.EXTRA_SELECTED_GAME)!!
- emulationState = EmulationState(game.path)
+ emulationState = EmulationState(args.game.path)
}
/**
@@ -100,7 +137,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
updateShowFpsOverlay()
binding.inGameMenu.getHeaderView(0).findViewById<TextView>(R.id.text_game_title).text =
- game.title
+ args.game.title
binding.inGameMenu.setNavigationItemSelectedListener {
when (it.itemId) {
R.id.menu_pause_emulation -> {
@@ -125,7 +162,12 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
}
R.id.menu_settings -> {
- SettingsActivity.launch(requireContext(), SettingsFile.FILE_NAME_CONFIG, "")
+ SettingsActivity.launch(
+ requireContext(),
+ onReturnFromSettings,
+ SettingsFile.FILE_NAME_CONFIG,
+ ""
+ )
true
}
@@ -150,9 +192,48 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
requireActivity(),
object : OnBackPressedCallback(true) {
override fun handleOnBackPressed() {
- if (binding.drawerLayout.isOpen) binding.drawerLayout.close() else binding.drawerLayout.open()
+ 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() {
@@ -172,6 +253,8 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
}
)
+ updateScreenLayout()
+
emulationState.run(emulationActivity!!.isActivityRecreated)
}
@@ -231,31 +314,57 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
}
}
- private val Number.toPx get() = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, this.toFloat(), Resources.getSystem().displayMetrics).toInt()
-
- fun updateCurrentLayout(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) {
- binding.surfaceEmulation.layoutParams.height = it.bounds.top
- binding.inGameMenu.layoutParams.height = it.bounds.bottom
- binding.overlayContainer.layoutParams.height = it.bounds.bottom - 48.toPx
- binding.overlayContainer.updatePadding(0, 0, 0, 24.toPx)
- }
+ @SuppressLint("SourceLockedOrientationActivity")
+ private fun updateScreenLayout() {
+ 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
}
- it.isSeparating
- } ?: false
+ }
+ onConfigurationChanged(resources.configuration)
+ }
+
+ 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.surfaceEmulation.layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT
- binding.inGameMenu.layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT
+ 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.overlayContainer.updatePadding(0, 0, 0, 0)
- emulationActivity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE
+ binding.inGameMenu.layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT
+ isInFoldableLayout = false
+ updateScreenLayout()
}
- binding.surfaceInputOverlay.requestLayout()
- binding.inGameMenu.requestLayout()
+ binding.emulationContainer.requestLayout()
+ binding.inputContainer.requestLayout()
binding.overlayContainer.requestLayout()
+ binding.inGameMenu.requestLayout()
}
override fun surfaceCreated(holder: SurfaceHolder) {
@@ -385,7 +494,19 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
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)
}
@@ -393,6 +514,12 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
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")
@@ -402,18 +529,22 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
inputScaleSlider.apply {
valueTo = 150F
value = preferences.getInt(Settings.PREF_CONTROL_SCALE, 50).toFloat()
- addOnChangeListener(Slider.OnChangeListener { _, value, _ ->
- inputScaleValue.text = "${value.toInt()}%"
- setControlScale(value.toInt())
- })
+ 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())
- })
+ addOnChangeListener(
+ Slider.OnChangeListener { _, value, _ ->
+ inputOpacityValue.text = "${value.toInt()}%"
+ setControlOpacity(value.toInt())
+ }
+ )
}
inputScaleValue.text = "${inputScaleSlider.value.toInt()}%"
inputOpacityValue.text = "${inputOpacitySlider.value.toInt()}%"
@@ -445,7 +576,9 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
}
private fun setInsets() {
- ViewCompat.setOnApplyWindowInsetsListener(binding.inGameMenu) { v: View, windowInsets: WindowInsetsCompat ->
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.inGameMenu
+ ) { v: View, windowInsets: WindowInsetsCompat ->
val cutInsets: Insets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
var left = 0
var right = 0
@@ -565,8 +698,12 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
state = State.PAUSED
}
- State.PAUSED -> Log.warning("[EmulationFragment] Surface cleared while emulation paused.")
- else -> Log.warning("[EmulationFragment] Surface cleared while emulation stopped.")
+ State.PAUSED -> Log.warning(
+ "[EmulationFragment] Surface cleared while emulation paused."
+ )
+ else -> Log.warning(
+ "[EmulationFragment] Surface cleared while emulation stopped."
+ )
}
}
}
@@ -601,13 +738,5 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
companion object {
private val perfStatsUpdateHandler = Handler(Looper.myLooper()!!)
-
- fun newInstance(game: Game): EmulationFragment {
- val args = Bundle()
- args.putParcelable(EmulationActivity.EXTRA_SELECTED_GAME, game)
- val fragment = EmulationFragment()
- fragment.arguments = args
- return fragment
- }
}
}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt
index bdc337501..6f8adbba5 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt
@@ -95,15 +95,27 @@ class HomeSettingsFragment : Fragment() {
R.drawable.ic_nfc
) { mainActivity.getAmiiboKey.launch(arrayOf("*/*")) },
HomeSetting(
+ R.string.install_game_content,
+ R.string.install_game_content_description,
+ R.drawable.ic_system_update_alt
+ ) { mainActivity.installGameUpdate.launch(arrayOf("*/*")) },
+ 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) },
+ ) {
+ mainActivity.getGamesDirectory.launch(Intent(Intent.ACTION_OPEN_DOCUMENT_TREE).data)
+ },
HomeSetting(
R.string.manage_save_data,
R.string.import_export_saves_description,
R.drawable.ic_save
- ) { ImportExportSavesFragment().show(parentFragmentManager, ImportExportSavesFragment.TAG) },
+ ) {
+ ImportExportSavesFragment().show(
+ parentFragmentManager,
+ ImportExportSavesFragment.TAG
+ )
+ },
HomeSetting(
R.string.install_prod_keys,
R.string.install_prod_keys_description,
@@ -215,7 +227,11 @@ class HomeSettingsFragment : Fragment() {
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)
+ intent.addFlags(
+ Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION or
+ Intent.FLAG_GRANT_PREFIX_URI_PERMISSION or
+ Intent.FLAG_GRANT_WRITE_URI_PERMISSION
+ )
return intent
}
@@ -297,7 +313,9 @@ class HomeSettingsFragment : Fragment() {
}
private fun setInsets() =
- ViewCompat.setOnApplyWindowInsetsListener(binding.root) { view: View, windowInsets: WindowInsetsCompat ->
+ 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)
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
index 36e63bb9e..e1495ee8c 100644
--- 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
@@ -15,6 +15,14 @@ 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
@@ -24,14 +32,6 @@ 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
-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
class ImportExportSavesFragment : DialogFragment() {
private val context = YuzuApplication.appContext
@@ -98,7 +98,7 @@ class ImportExportSavesFragment : DialogFragment() {
val outputZipFile = File(
tempFolder,
"yuzu saves - ${
- LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"))
+ LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"))
}.zip"
)
outputZipFile.createNewFile()
@@ -106,12 +106,14 @@ class ImportExportSavesFragment : DialogFragment() {
saveFolder.walkTopDown().forEach { file ->
val zipFileName =
file.absolutePath.removePrefix(savesFolderRoot).removePrefix("/")
- if (zipFileName == "")
+ if (zipFileName == "") {
return@forEach
+ }
val entry = ZipEntry("$zipFileName${(if (file.isDirectory) "/" else "")}")
zos.putNextEntry(entry)
- if (file.isFile)
+ if (file.isFile) {
file.inputStream().use { fis -> fis.copyTo(zos) }
+ }
}
}
lastZipCreated = outputZipFile
@@ -137,7 +139,8 @@ class ImportExportSavesFragment : DialogFragment() {
withContext(Dispatchers.Main) {
val file = DocumentFile.fromSingleUri(
- context, DocumentsContract.buildDocumentUri(
+ context,
+ DocumentsContract.buildDocumentUri(
DocumentProvider.AUTHORITY,
"${DocumentProvider.ROOT_ID}/temp/${lastZipFile.name}"
)
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
index c7880d8cc..739b26f99 100644
--- 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
@@ -14,7 +14,6 @@ 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()
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
index 59141e823..b6e9129f7 100644
--- 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
@@ -113,7 +113,9 @@ class LicensesFragment : Fragment() {
}
private fun setInsets() =
- ViewCompat.setOnApplyWindowInsetsListener(binding.root) { _: View, windowInsets: WindowInsetsCompat ->
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.root
+ ) { _: View, windowInsets: WindowInsetsCompat ->
val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
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
index adbe3696b..dd6c895fd 100644
--- 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
@@ -20,6 +20,7 @@ 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
@@ -29,8 +30,6 @@ import org.yuzu.yuzu_emu.model.Game
import org.yuzu.yuzu_emu.model.GamesViewModel
import org.yuzu.yuzu_emu.model.HomeViewModel
import org.yuzu.yuzu_emu.utils.FileUtil
-import org.yuzu.yuzu_emu.utils.Log
-import java.util.Locale
class SearchFragment : Fragment() {
private var _binding: FragmentSearchBinding? = null
@@ -130,15 +129,15 @@ class SearchFragment : Fragment() {
R.id.chip_homebrew -> baseList.filter { it.isHomebrew }
R.id.chip_retail -> baseList.filter {
- FileUtil.hasExtension(it.path, "xci")
- || FileUtil.hasExtension(it.path, "nsp")
+ FileUtil.hasExtension(it.path, "xci") ||
+ FileUtil.hasExtension(it.path, "nsp")
}
else -> baseList
}
- if (binding.searchText.text.toString().isEmpty()
- && binding.chipGroup.checkedChipId != View.NO_ID
+ if (binding.searchText.text.toString().isEmpty() &&
+ binding.chipGroup.checkedChipId != View.NO_ID
) {
gamesViewModel.setSearchedGames(filteredList)
return
@@ -173,14 +172,16 @@ class SearchFragment : Fragment() {
private fun focusSearch() {
if (_binding != null) {
binding.searchText.requestFocus()
- val imm =
- requireActivity().getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager?
+ 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 ->
+ 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)
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
index 258773380..6c4ddaf6b 100644
--- 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
@@ -25,6 +25,7 @@ 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
@@ -35,7 +36,6 @@ 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
-import java.io.File
class SetupFragment : Fragment() {
private var _binding: FragmentSetupBinding? = null
@@ -82,7 +82,8 @@ class SetupFragment : Fragment() {
requireActivity().finish()
}
}
- })
+ }
+ )
requireActivity().window.navigationBarColor =
ContextCompat.getColor(requireContext(), android.R.color.transparent)
@@ -148,14 +149,20 @@ class SetupFragment : Fragment() {
R.drawable.ic_add,
true,
R.string.add_games,
- { mainActivity.getGamesDirectory.launch(Intent(Intent.ACTION_OPEN_DOCUMENT_TREE).data) },
+ {
+ 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)
+ PreferenceManager.getDefaultSharedPreferences(
+ YuzuApplication.appContext
+ )
preferences.getString(GameHelper.KEY_GAME_PATH, "")!!.isNotEmpty()
}
)
@@ -260,7 +267,9 @@ class SetupFragment : Fragment() {
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
private val permissionLauncher =
registerForActivityResult(ActivityResultContracts.RequestPermission()) {
- if (!it && !shouldShowRequestPermissionRationale(Manifest.permission.POST_NOTIFICATIONS)) {
+ if (!it &&
+ !shouldShowRequestPermissionRationale(Manifest.permission.POST_NOTIFICATIONS)
+ ) {
PermissionDeniedDialogFragment().show(
childFragmentManager,
PermissionDeniedDialogFragment.TAG
@@ -315,7 +324,9 @@ class SetupFragment : Fragment() {
}
private fun setInsets() =
- ViewCompat.setOnApplyWindowInsetsListener(binding.root) { view: View, windowInsets: WindowInsetsCompat ->
+ ViewCompat.setOnApplyWindowInsetsListener(
+ binding.root
+ ) { view: View, windowInsets: WindowInsetsCompat ->
val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
view.setPadding(
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
index be5e4c86c..bdd6ea628 100644
--- 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
@@ -44,7 +44,9 @@ class AutofitGridLayoutManager(
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)) {
+ if (columnWidth > 0 && width > 0 && height > 0 &&
+ (isColumnWidthChanged || lastWidth != width || lastHeight != height)
+ ) {
val totalSpace: Int = if (orientation == VERTICAL) {
width - paddingRight - paddingLeft
} else {
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt
index 3d6782c49..6a048e39f 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt
@@ -4,9 +4,9 @@
package org.yuzu.yuzu_emu.model
import android.os.Parcelable
+import java.util.HashSet
import kotlinx.parcelize.Parcelize
import kotlinx.serialization.Serializable
-import java.util.HashSet
@Parcelize
@Serializable
@@ -23,16 +23,22 @@ class Game(
val keyLastPlayedTime get() = "${gameId}_LastPlayed"
override fun equals(other: Any?): Boolean {
- if (other !is Game)
+ if (other !is Game) {
return false
+ }
+
+ return hashCode() == other.hashCode()
+ }
- return title == other.title
- && description == other.description
- && regions == other.regions
- && path == other.path
- && gameId == other.gameId
- && company == other.company
- && isHomebrew == other.isHomebrew
+ 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 {
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
index d9b301210..1fe42f922 100644
--- 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
@@ -10,6 +10,7 @@ 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
@@ -20,7 +21,6 @@ import kotlinx.serialization.json.Json
import org.yuzu.yuzu_emu.NativeLibrary
import org.yuzu.yuzu_emu.YuzuApplication
import org.yuzu.yuzu_emu.utils.GameHelper
-import java.util.Locale
@OptIn(ExperimentalSerializationApi::class)
class GamesViewModel : ViewModel() {
@@ -99,8 +99,9 @@ class GamesViewModel : ViewModel() {
}
fun reloadGames(directoryChanged: Boolean) {
- if (isReloading.value == true)
+ if (isReloading.value == true) {
return
+ }
_isReloading.postValue(true)
viewModelScope.launch {
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
index aa424c768..6251ec783 100644
--- 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
@@ -6,7 +6,6 @@ package org.yuzu.yuzu_emu.overlay
import android.app.Activity
import android.content.Context
import android.content.SharedPreferences
-import android.content.res.Configuration
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Point
@@ -24,6 +23,8 @@ 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
@@ -31,14 +32,13 @@ 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
-import kotlin.math.max
-import kotlin.math.min
/**
* Draws the interactive input overlay on top of the
* [SurfaceView] that is rendering emulation.
*/
-class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context, attrs),
+class InputOverlay(context: Context, attrs: AttributeSet?) :
+ SurfaceView(context, attrs),
OnTouchListener {
private val overlayButtons: MutableSet<InputOverlayDrawableButton> = HashSet()
private val overlayDpads: MutableSet<InputOverlayDrawableDpad> = HashSet()
@@ -51,12 +51,14 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
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, false)) {
+ if (!preferences.getBoolean("${Settings.PREF_OVERLAY_INIT}$orientation", false)) {
defaultOverlay()
}
@@ -93,7 +95,11 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
var shouldUpdateView = false
val playerIndex =
- if (NativeLibrary.isHandheldOnly()) NativeLibrary.ConsoleDevice else NativeLibrary.Player1Device
+ if (NativeLibrary.isHandheldOnly()) {
+ NativeLibrary.ConsoleDevice
+ } else {
+ NativeLibrary.Player1Device
+ }
for (button in overlayButtons) {
if (!button.updateStatus(event)) {
@@ -156,8 +162,9 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
shouldUpdateView = true
}
- if (shouldUpdateView)
+ if (shouldUpdateView) {
invalidate()
+ }
if (!preferences.getBoolean(Settings.PREF_TOUCH_ENABLED, true)) {
return true
@@ -233,10 +240,6 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
val fingerPositionX = event.getX(pointerIndex).toInt()
val fingerPositionY = event.getY(pointerIndex).toInt()
- // TODO: Provide support for portrait layout
- //val orientation =
- // if (resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT) "-Portrait" else ""
-
for (button in overlayButtons) {
// Determine the button state to apply based on the MotionEvent action flag.
when (event.action and MotionEvent.ACTION_MASK) {
@@ -245,9 +248,9 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
// If no button is being moved now, remember the currently touched button to move.
if (buttonBeingConfigured == null &&
button.bounds.contains(
- fingerPositionX,
- fingerPositionY
- )
+ fingerPositionX,
+ fingerPositionY
+ )
) {
buttonBeingConfigured = button
buttonBeingConfigured!!.onConfigureTouch(event)
@@ -266,7 +269,7 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
buttonBeingConfigured!!.buttonId,
buttonBeingConfigured!!.bounds.centerX(),
buttonBeingConfigured!!.bounds.centerY(),
- ""
+ orientation
)
buttonBeingConfigured = null
}
@@ -299,7 +302,7 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
dpadBeingConfigured!!.upId,
dpadBeingConfigured!!.bounds.centerX(),
dpadBeingConfigured!!.bounds.centerY(),
- ""
+ orientation
)
dpadBeingConfigured = null
}
@@ -311,9 +314,9 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
MotionEvent.ACTION_DOWN,
MotionEvent.ACTION_POINTER_DOWN -> if (joystickBeingConfigured == null &&
joystick.bounds.contains(
- fingerPositionX,
- fingerPositionY
- )
+ fingerPositionX,
+ fingerPositionY
+ )
) {
joystickBeingConfigured = joystick
joystickBeingConfigured!!.onConfigureTouch(event)
@@ -330,7 +333,7 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
joystickBeingConfigured!!.buttonId,
joystickBeingConfigured!!.bounds.centerX(),
joystickBeingConfigured!!.bounds.centerY(),
- ""
+ orientation
)
joystickBeingConfigured = null
}
@@ -533,8 +536,6 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
overlayButtons.clear()
overlayDpads.clear()
overlayJoysticks.clear()
- val orientation =
- if (resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT) "-Portrait" else ""
// Add all the enabled overlay items back to the HashSet.
if (EmulationMenuSettings.showOverlay) {
@@ -548,8 +549,8 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
val min = windowSize.first
val max = windowSize.second
PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext).edit()
- .putFloat("$sharedPrefsId$orientation-X", (x - min.x).toFloat() / max.x)
- .putFloat("$sharedPrefsId$orientation-Y", (y - min.y).toFloat() / max.y)
+ .putFloat("$sharedPrefsId-X$orientation", (x - min.x).toFloat() / max.x)
+ .putFloat("$sharedPrefsId-Y$orientation", (y - min.y).toFloat() / max.y)
.apply()
}
@@ -558,145 +559,250 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
}
private fun defaultOverlay() {
- if (!preferences.getBoolean(Settings.PREF_OVERLAY_INIT, false)) {
- defaultOverlayLandscape()
+ if (!preferences.getBoolean("${Settings.PREF_OVERLAY_INIT}$orientation", false)) {
+ defaultOverlayByLayout(orientation)
}
resetButtonPlacement()
preferences.edit()
- .putBoolean(Settings.PREF_OVERLAY_INIT, true)
+ .putBoolean("${Settings.PREF_OVERLAY_INIT}$orientation", true)
.apply()
}
fun resetButtonPlacement() {
- defaultOverlayLandscape()
+ defaultOverlayByLayout(orientation)
refreshControls()
}
- private fun defaultOverlayLandscape() {
+ 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",
- resources.getInteger(R.integer.SWITCH_BUTTON_A_X).toFloat() / 1000
+ ButtonType.BUTTON_A.toString() + "-X$orientation",
+ getResourceValue(orientation, 0)
)
.putFloat(
- ButtonType.BUTTON_A.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_BUTTON_A_Y).toFloat() / 1000
+ ButtonType.BUTTON_A.toString() + "-Y$orientation",
+ getResourceValue(orientation, 1)
)
.putFloat(
- ButtonType.BUTTON_B.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_BUTTON_B_X).toFloat() / 1000
+ ButtonType.BUTTON_B.toString() + "-X$orientation",
+ getResourceValue(orientation, 2)
)
.putFloat(
- ButtonType.BUTTON_B.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_BUTTON_B_Y).toFloat() / 1000
+ ButtonType.BUTTON_B.toString() + "-Y$orientation",
+ getResourceValue(orientation, 3)
)
.putFloat(
- ButtonType.BUTTON_X.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_BUTTON_X_X).toFloat() / 1000
+ ButtonType.BUTTON_X.toString() + "-X$orientation",
+ getResourceValue(orientation, 4)
)
.putFloat(
- ButtonType.BUTTON_X.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_BUTTON_X_Y).toFloat() / 1000
+ ButtonType.BUTTON_X.toString() + "-Y$orientation",
+ getResourceValue(orientation, 5)
)
.putFloat(
- ButtonType.BUTTON_Y.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_BUTTON_Y_X).toFloat() / 1000
+ ButtonType.BUTTON_Y.toString() + "-X$orientation",
+ getResourceValue(orientation, 6)
)
.putFloat(
- ButtonType.BUTTON_Y.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_BUTTON_Y_Y).toFloat() / 1000
+ ButtonType.BUTTON_Y.toString() + "-Y$orientation",
+ getResourceValue(orientation, 7)
)
.putFloat(
- ButtonType.TRIGGER_ZL.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_TRIGGER_ZL_X).toFloat() / 1000
+ ButtonType.TRIGGER_ZL.toString() + "-X$orientation",
+ getResourceValue(orientation, 8)
)
.putFloat(
- ButtonType.TRIGGER_ZL.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_TRIGGER_ZL_Y).toFloat() / 1000
+ ButtonType.TRIGGER_ZL.toString() + "-Y$orientation",
+ getResourceValue(orientation, 9)
)
.putFloat(
- ButtonType.TRIGGER_ZR.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_TRIGGER_ZR_X).toFloat() / 1000
+ ButtonType.TRIGGER_ZR.toString() + "-X$orientation",
+ getResourceValue(orientation, 10)
)
.putFloat(
- ButtonType.TRIGGER_ZR.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_TRIGGER_ZR_Y).toFloat() / 1000
+ ButtonType.TRIGGER_ZR.toString() + "-Y$orientation",
+ getResourceValue(orientation, 11)
)
.putFloat(
- ButtonType.DPAD_UP.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_BUTTON_DPAD_X).toFloat() / 1000
+ ButtonType.DPAD_UP.toString() + "-X$orientation",
+ getResourceValue(orientation, 12)
)
.putFloat(
- ButtonType.DPAD_UP.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_BUTTON_DPAD_Y).toFloat() / 1000
+ ButtonType.DPAD_UP.toString() + "-Y$orientation",
+ getResourceValue(orientation, 13)
)
.putFloat(
- ButtonType.TRIGGER_L.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_TRIGGER_L_X).toFloat() / 1000
+ ButtonType.TRIGGER_L.toString() + "-X$orientation",
+ getResourceValue(orientation, 14)
)
.putFloat(
- ButtonType.TRIGGER_L.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_TRIGGER_L_Y).toFloat() / 1000
+ ButtonType.TRIGGER_L.toString() + "-Y$orientation",
+ getResourceValue(orientation, 15)
)
.putFloat(
- ButtonType.TRIGGER_R.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_TRIGGER_R_X).toFloat() / 1000
+ ButtonType.TRIGGER_R.toString() + "-X$orientation",
+ getResourceValue(orientation, 16)
)
.putFloat(
- ButtonType.TRIGGER_R.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_TRIGGER_R_Y).toFloat() / 1000
+ ButtonType.TRIGGER_R.toString() + "-Y$orientation",
+ getResourceValue(orientation, 17)
)
.putFloat(
- ButtonType.BUTTON_PLUS.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_BUTTON_PLUS_X).toFloat() / 1000
+ ButtonType.BUTTON_PLUS.toString() + "-X$orientation",
+ getResourceValue(orientation, 18)
)
.putFloat(
- ButtonType.BUTTON_PLUS.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_BUTTON_PLUS_Y).toFloat() / 1000
+ ButtonType.BUTTON_PLUS.toString() + "-Y$orientation",
+ getResourceValue(orientation, 19)
)
.putFloat(
- ButtonType.BUTTON_MINUS.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_BUTTON_MINUS_X).toFloat() / 1000
+ ButtonType.BUTTON_MINUS.toString() + "-X$orientation",
+ getResourceValue(orientation, 20)
)
.putFloat(
- ButtonType.BUTTON_MINUS.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_BUTTON_MINUS_Y).toFloat() / 1000
+ ButtonType.BUTTON_MINUS.toString() + "-Y$orientation",
+ getResourceValue(orientation, 21)
)
.putFloat(
- ButtonType.BUTTON_HOME.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_BUTTON_HOME_X).toFloat() / 1000
+ ButtonType.BUTTON_HOME.toString() + "-X$orientation",
+ getResourceValue(orientation, 22)
)
.putFloat(
- ButtonType.BUTTON_HOME.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_BUTTON_HOME_Y).toFloat() / 1000
+ ButtonType.BUTTON_HOME.toString() + "-Y$orientation",
+ getResourceValue(orientation, 23)
)
.putFloat(
- ButtonType.BUTTON_CAPTURE.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_BUTTON_CAPTURE_X)
- .toFloat() / 1000
+ ButtonType.BUTTON_CAPTURE.toString() + "-X$orientation",
+ getResourceValue(orientation, 24)
)
.putFloat(
- ButtonType.BUTTON_CAPTURE.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_BUTTON_CAPTURE_Y)
- .toFloat() / 1000
+ ButtonType.BUTTON_CAPTURE.toString() + "-Y$orientation",
+ getResourceValue(orientation, 25)
)
.putFloat(
- ButtonType.STICK_R.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_STICK_R_X).toFloat() / 1000
+ ButtonType.STICK_R.toString() + "-X$orientation",
+ getResourceValue(orientation, 26)
)
.putFloat(
- ButtonType.STICK_R.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_STICK_R_Y).toFloat() / 1000
+ ButtonType.STICK_R.toString() + "-Y$orientation",
+ getResourceValue(orientation, 27)
)
.putFloat(
- ButtonType.STICK_L.toString() + "-X",
- resources.getInteger(R.integer.SWITCH_STICK_L_X).toFloat() / 1000
+ ButtonType.STICK_L.toString() + "-X$orientation",
+ getResourceValue(orientation, 28)
)
.putFloat(
- ButtonType.STICK_L.toString() + "-Y",
- resources.getInteger(R.integer.SWITCH_STICK_L_Y).toFloat() / 1000
+ ButtonType.STICK_L.toString() + "-Y$orientation",
+ getResourceValue(orientation, 29)
)
.apply()
}
@@ -709,13 +815,17 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
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]
+ * @return The scaled [Bitmap]
*/
private fun getBitmap(context: Context, drawableId: Int, scale: Float): Bitmap {
val vectorDrawable = ContextCompat.getDrawable(context, drawableId) as VectorDrawable
@@ -749,14 +859,13 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
* 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,
+ * @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)
+ val windowMetrics = WindowMetricsCalculator.getOrCreate()
+ .computeCurrentWindowMetrics(context as Activity)
var maxY = windowMetrics.bounds.height().toFloat()
var maxX = windowMetrics.bounds.width().toFloat()
var minY = 0
@@ -768,10 +877,16 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
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)
- insets.boundingRectTop.bottom.toFloat() else maxY
- if (insets.boundingRectRight.left != 0 && insets.boundingRectRight.left > maxX / 2)
- insets.boundingRectRight.left.toFloat() else maxX
+ 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
@@ -878,8 +993,8 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
// The X and Y coordinates of the InputOverlayDrawableButton on the InputOverlay.
// These were set in the input overlay configuration menu.
- val xKey = "$buttonId$orientation-X"
- val yKey = "$buttonId$orientation-Y"
+ 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()
@@ -959,8 +1074,8 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
// 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}$orientation-X", 0f)
- val drawableYPercent = sPrefs.getFloat("${ButtonType.DPAD_UP}$orientation-Y", 0f)
+ 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
@@ -1026,8 +1141,8 @@ class InputOverlay(context: Context, attrs: AttributeSet?) : SurfaceView(context
// 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$orientation-X", 0f)
- val drawableYPercent = sPrefs.getFloat("$button$orientation-Y", 0f)
+ 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
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
index 43d664d21..8aef6f5a5 100644
--- 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
@@ -133,7 +133,10 @@ class InputOverlayDrawableDpad(
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 oldUpState != upButtonState ||
+ oldDownState != downButtonState ||
+ oldLeftState != leftButtonState ||
+ oldRightState != rightButtonState
}
return false
}
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
index f1d32192a..fb48f584d 100644
--- 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
@@ -9,12 +9,12 @@ import android.graphics.Canvas
import android.graphics.Rect
import android.graphics.drawable.BitmapDrawable
import android.view.MotionEvent
-import org.yuzu.yuzu_emu.NativeLibrary
-import org.yuzu.yuzu_emu.utils.EmulationMenuSettings
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
@@ -241,14 +241,22 @@ class InputOverlayDrawableJoystick(
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
+ 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(
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
index 97eef40d2..b0156dca5 100644
--- 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
@@ -99,7 +99,9 @@ class GamesFragment : Fragment() {
}
shouldSwapData.observe(viewLifecycleOwner) { shouldSwapData ->
if (shouldSwapData) {
- (binding.gridGames.adapter as GameAdapter).submitList(gamesViewModel.games.value!!)
+ (binding.gridGames.adapter as GameAdapter).submitList(
+ gamesViewModel.games.value!!
+ )
gamesViewModel.setShouldSwapData(false)
}
}
@@ -128,7 +130,9 @@ class GamesFragment : Fragment() {
}
private fun setInsets() =
- ViewCompat.setOnApplyWindowInsetsListener(binding.root) { view: View, windowInsets: WindowInsetsCompat ->
+ 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)
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
index 3fca0a7e6..cc1d87f1b 100644
--- 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
@@ -26,6 +26,9 @@ 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
@@ -43,9 +46,6 @@ 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.*
-import java.io.File
-import java.io.FilenameFilter
-import java.io.IOException
class MainActivity : AppCompatActivity(), ThemeProvider {
private lateinit var binding: ActivityMainBinding
@@ -86,7 +86,9 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
ThemeHelper.SYSTEM_BAR_ALPHA
)
)
- if (InsetsHelper.getSystemGestureType(applicationContext) != InsetsHelper.GESTURE_NAVIGATION) {
+ if (InsetsHelper.getSystemGestureType(applicationContext) !=
+ InsetsHelper.GESTURE_NAVIGATION
+ ) {
binding.navigationBarShade.setBackgroundColor(
ThemeHelper.getColorWithOpacity(
MaterialColors.getColor(
@@ -172,7 +174,9 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
binding.navigationView.height.toFloat() * 2
translationY(0f)
} else {
- if (ViewCompat.getLayoutDirection(binding.navigationView) == ViewCompat.LAYOUT_DIRECTION_LTR) {
+ if (ViewCompat.getLayoutDirection(binding.navigationView) ==
+ ViewCompat.LAYOUT_DIRECTION_LTR
+ ) {
binding.navigationView.translationX =
binding.navigationView.width.toFloat() * -2
translationX(0f)
@@ -189,7 +193,9 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
if (smallLayout) {
translationY(binding.navigationView.height.toFloat() * 2)
} else {
- if (ViewCompat.getLayoutDirection(binding.navigationView) == ViewCompat.LAYOUT_DIRECTION_LTR) {
+ if (ViewCompat.getLayoutDirection(binding.navigationView) ==
+ ViewCompat.LAYOUT_DIRECTION_LTR
+ ) {
translationX(binding.navigationView.width.toFloat() * -2)
} else {
translationX(binding.navigationView.width.toFloat() * 2)
@@ -234,7 +240,9 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
}
private fun setInsets() =
- ViewCompat.setOnApplyWindowInsetsListener(binding.root) { _: View, windowInsets: WindowInsetsCompat ->
+ 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
@@ -256,8 +264,9 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
val getGamesDirectory =
registerForActivityResult(ActivityResultContracts.OpenDocumentTree()) { result ->
- if (result == null)
+ if (result == null) {
return@registerForActivityResult
+ }
contentResolver.takePersistableUriPermission(
result,
@@ -281,8 +290,9 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
val getProdKey =
registerForActivityResult(ActivityResultContracts.OpenDocument()) { result ->
- if (result == null)
+ if (result == null) {
return@registerForActivityResult
+ }
if (!FileUtil.hasExtension(result, "keys")) {
MessageDialogFragment.newInstance(
@@ -324,8 +334,9 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
val getFirmware =
registerForActivityResult(ActivityResultContracts.OpenDocument()) { result ->
- if (result == null)
+ if (result == null) {
return@registerForActivityResult
+ }
val inputZip = contentResolver.openInputStream(result)
if (inputZip == null) {
@@ -376,8 +387,9 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
val getAmiiboKey =
registerForActivityResult(ActivityResultContracts.OpenDocument()) { result ->
- if (result == null)
+ if (result == null) {
return@registerForActivityResult
+ }
if (!FileUtil.hasExtension(result, "bin")) {
MessageDialogFragment.newInstance(
@@ -418,8 +430,9 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
val getDriver =
registerForActivityResult(ActivityResultContracts.OpenDocument()) { result ->
- if (result == null)
+ if (result == null) {
return@registerForActivityResult
+ }
val takeFlags =
Intent.FLAG_GRANT_WRITE_URI_PERMISSION or Intent.FLAG_GRANT_READ_URI_PERMISSION
@@ -467,4 +480,63 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
}
}
}
+
+ val installGameUpdate =
+ registerForActivityResult(ActivityResultContracts.OpenDocument()) {
+ if (it == null) {
+ return@registerForActivityResult
+ }
+
+ IndeterminateProgressDialogFragment.newInstance(
+ this@MainActivity,
+ R.string.install_game_content
+ ) {
+ val result = NativeLibrary.installFileToNand(it.toString())
+ lifecycleScope.launch {
+ withContext(Dispatchers.Main) {
+ when (result) {
+ NativeLibrary.InstallFileToNandResult.Success -> {
+ Toast.makeText(
+ applicationContext,
+ R.string.install_game_content_success,
+ Toast.LENGTH_SHORT
+ ).show()
+ }
+
+ NativeLibrary.InstallFileToNandResult.SuccessFileOverwritten -> {
+ Toast.makeText(
+ applicationContext,
+ R.string.install_game_content_success_overwrite,
+ Toast.LENGTH_SHORT
+ ).show()
+ }
+
+ NativeLibrary.InstallFileToNandResult.ErrorBaseGame -> {
+ MessageDialogFragment.newInstance(
+ R.string.install_game_content_failure,
+ R.string.install_game_content_failure_base
+ ).show(supportFragmentManager, MessageDialogFragment.TAG)
+ }
+
+ NativeLibrary.InstallFileToNandResult.ErrorFilenameExtension -> {
+ MessageDialogFragment.newInstance(
+ R.string.install_game_content_failure,
+ R.string.install_game_content_failure_file_extension,
+ R.string.install_game_content_help_link
+ ).show(supportFragmentManager, MessageDialogFragment.TAG)
+ }
+
+ else -> {
+ MessageDialogFragment.newInstance(
+ R.string.install_game_content_failure,
+ R.string.install_game_content_failure_description,
+ R.string.install_game_content_help_link
+ ).show(supportFragmentManager, MessageDialogFragment.TAG)
+ }
+ }
+ }
+ }
+ return@newInstance result
+ }.show(supportFragmentManager, IndeterminateProgressDialogFragment.TAG)
+ }
}
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
index 791cea904..eeefcdf20 100644
--- 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
@@ -19,7 +19,9 @@ class ControllerMappingHelper {
// 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
+ } else {
+ false
+ }
}
/**
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
index 36c479e6c..2ee63697e 100644
--- 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
@@ -4,8 +4,8 @@
package org.yuzu.yuzu_emu.utils
import android.content.Context
-import org.yuzu.yuzu_emu.NativeLibrary
import java.io.IOException
+import org.yuzu.yuzu_emu.NativeLibrary
object DirectoryInitialization {
private var userPath: String? = null
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
index cc8ea6b9d..cf226ad94 100644
--- 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
@@ -5,10 +5,10 @@ package org.yuzu.yuzu_emu.utils
import android.net.Uri
import androidx.documentfile.provider.DocumentFile
-import org.yuzu.yuzu_emu.YuzuApplication
-import org.yuzu.yuzu_emu.model.MinimalDocumentFile
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
@@ -29,13 +29,20 @@ class DocumentsTree {
val node = resolvePath(filepath)
return if (node == null || node.isDirectory) {
0
- } else FileUtil.getFileSize(YuzuApplication.appContext, node.uri.toString())
+ } 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
@@ -106,7 +113,9 @@ class DocumentsTree {
fun isNativePath(path: String): Boolean {
return if (path.isNotEmpty()) {
path[0] == '/'
- } else false
+ } 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
index e1e7a59d7..7e8f058c1 100644
--- 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
@@ -11,14 +11,6 @@ object EmulationMenuSettings {
private val preferences =
PreferenceManager.getDefaultSharedPreferences(YuzuApplication.appContext)
- // These must match what is defined in src/core/settings.h
- const val LayoutOption_Default = 0
- const val LayoutOption_SingleScreen = 1
- const val LayoutOption_LargeScreen = 2
- const val LayoutOption_SideScreen = 3
- const val LayoutOption_MobilePortrait = 4
- const val LayoutOption_MobileLandscape = 5
-
var joystickRelCenter: Boolean
get() = preferences.getBoolean(Settings.PREF_MENU_SETTINGS_JOYSTICK_REL_CENTER, true)
set(value) {
@@ -41,16 +33,6 @@ object EmulationMenuSettings {
.apply()
}
- var landscapeScreenLayout: Int
- get() = preferences.getInt(
- Settings.PREF_MENU_SETTINGS_LANDSCAPE,
- LayoutOption_MobileLandscape
- )
- set(value) {
- preferences.edit()
- .putInt(Settings.PREF_MENU_SETTINGS_LANDSCAPE, value)
- .apply()
- }
var showFps: Boolean
get() = preferences.getBoolean(Settings.PREF_MENU_SETTINGS_SHOW_FPS, false)
set(value) {
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
index 492b1ad91..9f3bbe56f 100644
--- 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
@@ -9,8 +9,6 @@ import android.net.Uri
import android.provider.DocumentsContract
import android.provider.OpenableColumns
import androidx.documentfile.provider.DocumentFile
-import org.yuzu.yuzu_emu.YuzuApplication
-import org.yuzu.yuzu_emu.model.MinimalDocumentFile
import java.io.BufferedInputStream
import java.io.File
import java.io.FileOutputStream
@@ -19,6 +17,8 @@ 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"
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
index dc9b7c744..086d17606 100644
--- 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
@@ -54,7 +54,7 @@ class ForegroundService : Service() {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
if (intent == null) {
- return START_NOT_STICKY;
+ return START_NOT_STICKY
}
if (intent.action == ACTION_STOP) {
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
index 42b207618..ee9f3e570 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GameHelper.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GameHelper.kt
@@ -6,12 +6,12 @@ package org.yuzu.yuzu_emu.utils
import android.content.SharedPreferences
import android.net.Uri
import androidx.preference.PreferenceManager
+import java.util.*
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
-import java.util.*
object GameHelper {
const val KEY_GAME_PATH = "game_path"
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
index 528011d7f..dad159481 100644
--- 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
@@ -5,14 +5,14 @@ package org.yuzu.yuzu_emu.utils
import android.content.Context
import android.net.Uri
-import org.yuzu.yuzu_emu.NativeLibrary
-import org.yuzu.yuzu_emu.utils.FileUtil.copyUriToInternalStorage
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"
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
index 70bdb4097..a4e64070a 100644
--- 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
@@ -3,12 +3,12 @@
package org.yuzu.yuzu_emu.utils
-import org.json.JSONException
-import org.json.JSONObject
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
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
index 24e999b29..e963dfbc1 100644
--- 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
@@ -5,8 +5,8 @@ package org.yuzu.yuzu_emu.utils
import android.view.KeyEvent
import android.view.MotionEvent
-import org.yuzu.yuzu_emu.NativeLibrary
import kotlin.math.sqrt
+import org.yuzu.yuzu_emu.NativeLibrary
class InputHandler {
fun initialize() {
@@ -68,7 +68,11 @@ class InputHandler {
6 -> NativeLibrary.Player6Device
7 -> NativeLibrary.Player7Device
8 -> NativeLibrary.Player8Device
- else -> if (NativeLibrary.isHandheldOnly()) NativeLibrary.ConsoleDevice else NativeLibrary.Player1Device
+ else -> if (NativeLibrary.isHandheldOnly()) {
+ NativeLibrary.ConsoleDevice
+ } else {
+ NativeLibrary.Player1Device
+ }
}
}
@@ -107,7 +111,11 @@ class InputHandler {
}
private fun getAxisToButton(axis: Float): Int {
- return if (axis > 0.5f) NativeLibrary.ButtonState.PRESSED else NativeLibrary.ButtonState.RELEASED
+ return if (axis > 0.5f) {
+ NativeLibrary.ButtonState.PRESSED
+ } else {
+ NativeLibrary.ButtonState.RELEASED
+ }
}
private fun setAxisDpadState(playerNumber: Int, xAxis: Float, yAxis: Float) {
@@ -287,7 +295,6 @@ class InputHandler {
}
}
-
private fun setJoyconAxisInput(event: MotionEvent, axis: Int) {
// Joycon support is half dead. Right joystick doesn't work
val playerNumber = getPlayerNumber(event.device.controllerNumber)
@@ -355,6 +362,4 @@ class InputHandler {
)
}
}
-
-
-} \ No newline at end of file
+}
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
index 19c53c481..595f0d284 100644
--- 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
@@ -4,9 +4,7 @@
package org.yuzu.yuzu_emu.utils
import android.annotation.SuppressLint
-import android.app.Activity
import android.content.Context
-import android.graphics.Rect
object InsetsHelper {
const val THREE_BUTTON_NAVIGATION = 0
@@ -20,12 +18,8 @@ object InsetsHelper {
resources.getIdentifier("config_navBarInteractionMode", "integer", "android")
return if (resourceId != 0) {
resources.getInteger(resourceId)
- } else 0
- }
-
- fun getBottomPaddingRequired(activity: Activity): Int {
- val visibleFrame = Rect()
- activity.window.decorView.getWindowVisibleDisplayFrame(visibleFrame)
- return visibleFrame.bottom - visibleFrame.top - activity.resources.displayMetrics.heightPixels
+ } else {
+ 0
+ }
}
}
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
index 344dd8a0a..68ed66565 100644
--- 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
@@ -13,8 +13,8 @@ import android.nfc.tech.NfcA
import android.os.Build
import android.os.Handler
import android.os.Looper
-import org.yuzu.yuzu_emu.NativeLibrary
import java.io.IOException
+import org.yuzu.yuzu_emu.NativeLibrary
class NfcReader(private val activity: Activity) {
private var nfcAdapter: NfcAdapter? = null
@@ -25,10 +25,13 @@ class NfcReader(private val activity: Activity) {
pendingIntent = PendingIntent.getActivity(
activity,
- 0, Intent(activity, activity.javaClass),
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S)
+ 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
+ } else {
+ PendingIntent.FLAG_UPDATE_CURRENT
+ }
)
val tagDetected = IntentFilter(NfcAdapter.ACTION_TAG_DISCOVERED)
@@ -45,9 +48,9 @@ class NfcReader(private val activity: 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
+ if (NfcAdapter.ACTION_TAG_DISCOVERED != action &&
+ NfcAdapter.ACTION_TECH_DISCOVERED != action &&
+ NfcAdapter.ACTION_NDEF_DISCOVERED != action
) {
return
}
@@ -84,7 +87,7 @@ class NfcReader(private val activity: Activity) {
}
private fun ntag215ReadAll(amiibo: NfcA): ByteArray? {
- val bufferSize = amiibo.maxTransceiveLength;
+ val bufferSize = amiibo.maxTransceiveLength
val tagSize = 0x21C
val pageSize = 4
val lastPage = tagSize / pageSize - 1
@@ -103,7 +106,7 @@ class NfcReader(private val activity: Activity) {
val data = ntag215FastRead(amiibo, dataStart, dataEnd - 1)
System.arraycopy(data, 0, tagData, i, (dataEnd - dataStart) * pageSize)
} catch (e: IOException) {
- return null;
+ return null
}
}
return tagData
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
index 87ee7f2e6..00e58faec 100644
--- 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
@@ -11,30 +11,34 @@ 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)
+ return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
getSerializable(key, T::class.java)
- else
+ } 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)
+ return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
getSerializableExtra(key, T::class.java)
- else
+ } 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)
+ return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
getParcelable(key, T::class.java)
- else
+ } 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)
+ return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
getParcelableExtra(key, T::class.java)
- else
+ } 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
index e55767c0f..f312e24cf 100644
--- 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
@@ -3,21 +3,19 @@
package org.yuzu.yuzu_emu.utils
-import android.app.Activity
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.content.ContextCompat
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
-import kotlin.math.roundToInt
object ThemeHelper {
const val SYSTEM_BAR_ALPHA = 0.9f
@@ -36,8 +34,8 @@ object ThemeHelper {
// 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)
+ if (preferences.getBoolean(Settings.PREF_BLACK_BACKGROUNDS, false) &&
+ isNightMode(activity)
) {
activity.setTheme(R.style.ThemeOverlay_Yuzu_Dark)
}
@@ -46,8 +44,10 @@ object ThemeHelper {
@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)
+ (alphaFactor * Color.alpha(color)).roundToInt(),
+ Color.red(color),
+ Color.green(color),
+ Color.blue(color)
)
}
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
index c8ef8c1fd..685ccaa76 100644
--- 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
@@ -38,9 +38,11 @@ class FixedRatioSurfaceView @JvmOverloads constructor(
newWidth = width
newHeight = (width / aspectRatio).roundToInt()
}
- setMeasuredDimension(newWidth, newHeight)
+ val left = (width - newWidth) / 2
+ val top = (height - newHeight) / 2
+ setLeftTopRightBottom(left, top, left + newWidth, top + newHeight)
} else {
- setMeasuredDimension(width, height)
+ setLeftTopRightBottom(0, 0, width, height)
}
}
}
diff --git a/src/android/app/src/main/jni/config.cpp b/src/android/app/src/main/jni/config.cpp
index 2d622a048..43e8aa72a 100644
--- a/src/android/app/src/main/jni/config.cpp
+++ b/src/android/app/src/main/jni/config.cpp
@@ -235,9 +235,13 @@ void Config::ReadValues() {
Settings::values.async_presentation =
config->GetBoolean("Renderer", "async_presentation", true);
- // Enable force_max_clock by default on Android
+ // Disable force_max_clock by default on Android
Settings::values.renderer_force_max_clock =
- config->GetBoolean("Renderer", "force_max_clock", true);
+ 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);
diff --git a/src/android/app/src/main/jni/default_ini.h b/src/android/app/src/main/jni/default_ini.h
index c5dfaff54..d81422a74 100644
--- a/src/android/app/src/main/jni/default_ini.h
+++ b/src/android/app/src/main/jni/default_ini.h
@@ -251,7 +251,7 @@ backend =
# 0: Off, 1 (default): On
async_presentation =
-# Enable graphics API debugging mode.
+# Forces the GPU to run at the maximum possible clocks (thermal constraints will still be applied).
# 0 (default): Disabled, 1: Enabled
force_max_clock =
@@ -328,6 +328,10 @@ shader_backend =
# 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 =
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp
index 7ebed5e6a..f9617202b 100644
--- a/src/android/app/src/main/jni/native.cpp
+++ b/src/android/app/src/main/jni/native.cpp
@@ -28,7 +28,10 @@
#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"
@@ -94,6 +97,74 @@ public:
m_native_window = native_window;
}
+ int InstallFileToNand(std::string filename) {
+ const auto 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;
+ std::vector<u8> buffer(1_MiB);
+
+ for (std::size_t i = 0; i < src->GetSize(); i += buffer.size()) {
+ const auto 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);
+
+ 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")) {
+ const auto 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;
+ }
+
+ const auto 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) {
@@ -131,6 +202,11 @@ public:
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;
@@ -154,14 +230,14 @@ public:
m_window = std::make_unique<EmuWindow_Android>(&m_input_subsystem, m_native_window,
m_vulkan_library);
+ m_system.SetFilesystem(m_vfs);
+
// Initialize system.
auto android_keyboard = std::make_unique<SoftwareKeyboard::AndroidKeyboard>();
m_software_keyboard = android_keyboard.get();
m_system.SetShuttingDown(false);
m_system.ApplySettings();
m_system.HIDCore().ReloadInputDevices();
- m_system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>());
- m_system.SetFilesystem(std::make_shared<FileSys::RealVfsFilesystem>());
m_system.SetAppletFrontendSet({
nullptr, // Amiibo Settings
nullptr, // Controller Selector
@@ -173,7 +249,8 @@ public:
std::move(android_keyboard), // Software Keyboard
nullptr, // Web Browser
});
- m_system.GetFileSystemController().CreateFactories(*m_system.GetFilesystem());
+ 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>();
@@ -215,11 +292,13 @@ public:
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() {
@@ -398,9 +477,10 @@ private:
InputCommon::InputSubsystem m_input_subsystem;
Common::DetachedTasks m_detached_tasks;
Core::PerfStatsResults m_perf_stats{};
- std::shared_ptr<FileSys::RealVfsFilesystem> m_vfs;
+ 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;
@@ -466,6 +546,12 @@ void Java_org_yuzu_yuzu_1emu_NativeLibrary_setAppDirectory(JNIEnv* env,
Common::FS::SetAppDirectory(GetJString(env, j_directory));
}
+int Java_org_yuzu_yuzu_1emu_NativeLibrary_installFileToNand(JNIEnv* env,
+ [[maybe_unused]] jclass clazz,
+ jstring j_file) {
+ return EmulationSession::GetInstance().InstallFileToNand(GetJString(env, j_file));
+}
+
void JNICALL Java_org_yuzu_yuzu_1emu_NativeLibrary_initializeGpuDriver(
JNIEnv* env, [[maybe_unused]] jclass clazz, jstring hook_lib_dir, jstring custom_driver_dir,
jstring custom_driver_name, jstring file_redirect_dir) {
@@ -505,6 +591,11 @@ jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_isRunning([[maybe_unused]] JNIEnv
return static_cast<jboolean>(EmulationSession::GetInstance().IsRunning());
}
+jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_isPaused([[maybe_unused]] JNIEnv* env,
+ [[maybe_unused]] jclass clazz) {
+ return static_cast<jboolean>(EmulationSession::GetInstance().IsPaused());
+}
+
jboolean Java_org_yuzu_yuzu_1emu_NativeLibrary_isHandheldOnly([[maybe_unused]] JNIEnv* env,
[[maybe_unused]] jclass clazz) {
return EmulationSession::GetInstance().IsHandheldOnly();
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_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/layout/activity_emulation.xml b/src/android/app/src/main/res/layout/activity_emulation.xml
index f6360a65b..139065d3d 100644
--- a/src/android/app/src/main/res/layout/activity_emulation.xml
+++ b/src/android/app/src/main/res/layout/activity_emulation.xml
@@ -1,13 +1,9 @@
-<FrameLayout
+<androidx.fragment.app.FragmentContainerView
xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/frame_content"
+ 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">
-
- <FrameLayout
- android:id="@+id/frame_emulation_fragment"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
-
-</FrameLayout>
+ android:keepScreenOn="true"
+ app:defaultNavHost="true" />
diff --git a/src/android/app/src/main/res/layout/fragment_emulation.xml b/src/android/app/src/main/res/layout/fragment_emulation.xml
index 09b789b6b..e54a10e8f 100644
--- a/src/android/app/src/main/res/layout/fragment_emulation.xml
+++ b/src/android/app/src/main/res/layout/fragment_emulation.xml
@@ -12,49 +12,65 @@
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"
+ <FrameLayout
+ android:id="@+id/emulation_container"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="center"
- android:focusable="false"
- android:focusableInTouchMode="false" />
+ 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/overlay_container"
+ 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"
+ <!-- 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"
- android:focusable="true"
- android:focusableInTouchMode="true" />
+ 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" />
+ <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" />
- <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>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
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
index 48072683e..fcebba726 100644
--- a/src/android/app/src/main/res/navigation/home_navigation.xml
+++ b/src/android/app/src/main/res/navigation/home_navigation.xml
@@ -56,4 +56,18 @@
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-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-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
index ea20cb17c..7f7b1938c 100644
--- a/src/android/app/src/main/res/values/arrays.xml
+++ b/src/android/app/src/main/res/values/arrays.xml
@@ -119,6 +119,18 @@
<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>
diff --git a/src/android/app/src/main/res/values/integers.xml b/src/android/app/src/main/res/values/integers.xml
index bc614b81d..2e93b408c 100644
--- a/src/android/app/src/main/res/values/integers.xml
+++ b/src/android/app/src/main/res/values/integers.xml
@@ -34,4 +34,68 @@
<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
index 6e9d47557..2f2059d42 100644
--- a/src/android/app/src/main/res/values/strings.xml
+++ b/src/android/app/src/main/res/values/strings.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<resources>
+<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
<!-- General application strings -->
<string name="app_name" translatable="false">yuzu</string>
@@ -102,6 +102,15 @@
<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 to NAND</string>
+ <string name="install_game_content_failure_description">Game content installation failed. Please ensure content is 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. Please select an update or DLC instead.</string>
+ <string name="install_game_content_failure_file_extension">The selected file type is not supported. Only NSP and XCI content is supported for this action. Please verify the game content is valid.</string>
+ <string name="install_game_content_success">Game content installed successfully</string>
+ <string name="install_game_content_success_overwrite">Game content was 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>
@@ -153,6 +162,7 @@
<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>
@@ -160,6 +170,8 @@
<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="renderer_debug">Graphics debugging</string>
<string name="renderer_debug_description">Sets the graphics API to a slow debugging mode.</string>
<string name="use_disk_shader_cache">Disk shader cache</string>
@@ -315,6 +327,11 @@
<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>
@@ -353,6 +370,12 @@
<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>
+
<!-- Licenses screen strings -->
<string name="licenses">Licenses</string>
<string name="license_fidelityfx_fsr" translatable="false">FidelityFX-FSR</string>
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/build.gradle.kts b/src/android/build.gradle.kts
index e19e8ce58..80f370c16 100644
--- a/src/android/build.gradle.kts
+++ b/src/android/build.gradle.kts
@@ -11,3 +11,12 @@ plugins {
tasks.register("clean").configure {
delete(rootProject.buildDir)
}
+
+buildscript {
+ repositories {
+ google()
+ }
+ dependencies {
+ classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.6.0")
+ }
+}