summaryrefslogtreecommitdiffstats
path: root/src/android/app
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-09-26 19:55:17 +0200
committerCharles Lombardo <clombardo169@gmail.com>2023-09-26 19:59:46 +0200
commitcf44be1de6bbfcbd92e765621bece91d2391714e (patch)
tree81b544c23bfcbbbc3b0688a697db89f82ec30730 /src/android/app
parentandroid: Fix cancel behavior on indeterminate progress dialog fragment (diff)
downloadyuzu-cf44be1de6bbfcbd92e765621bece91d2391714e.tar
yuzu-cf44be1de6bbfcbd92e765621bece91d2391714e.tar.gz
yuzu-cf44be1de6bbfcbd92e765621bece91d2391714e.tar.bz2
yuzu-cf44be1de6bbfcbd92e765621bece91d2391714e.tar.lz
yuzu-cf44be1de6bbfcbd92e765621bece91d2391714e.tar.xz
yuzu-cf44be1de6bbfcbd92e765621bece91d2391714e.tar.zst
yuzu-cf44be1de6bbfcbd92e765621bece91d2391714e.zip
Diffstat (limited to 'src/android/app')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt12
-rw-r--r--src/android/app/src/main/res/values/strings.xml4
2 files changed, 13 insertions, 3 deletions
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 0cb701476..0cef6072b 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
@@ -676,7 +676,11 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
}
}
if (!isYuzuBackup) {
- return@newInstance getString(R.string.invalid_yuzu_backup)
+ return@newInstance MessageDialogFragment.newInstance(
+ this,
+ titleId = R.string.invalid_yuzu_backup,
+ descriptionId = R.string.user_data_import_failed_description
+ )
}
// Clear existing user data
@@ -689,7 +693,11 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
File(DirectoryInitialization.userDirectory!!)
)
} catch (e: Exception) {
- return@newInstance getString(R.string.invalid_yuzu_backup)
+ return@newInstance MessageDialogFragment.newInstance(
+ this,
+ titleId = R.string.import_failed,
+ descriptionId = R.string.user_data_import_failed_description
+ )
}
// Reinitialize relevant data
diff --git a/src/android/app/src/main/res/values/strings.xml b/src/android/app/src/main/res/values/strings.xml
index 485d4c1dd..44845bfbf 100644
--- a/src/android/app/src/main/res/values/strings.xml
+++ b/src/android/app/src/main/res/values/strings.xml
@@ -100,7 +100,7 @@
<string name="firmware_installing">Installing firmware</string>
<string name="firmware_installed_success">Firmware installed successfully</string>
<string name="firmware_installed_failure">Firmware installation failed</string>
- <string name="firmware_installed_failure_description">Verify that the ZIP contains valid firmware and try again.</string>
+ <string name="firmware_installed_failure_description">Make sure the firmware nca files are at the root of the zip and try again.</string>
<string name="share_log">Share debug logs</string>
<string name="share_log_description">Share yuzu\'s log file to debug issues</string>
<string name="share_log_missing">No log file found</string>
@@ -140,6 +140,7 @@
<string name="user_data_export_success">User data exported successfully</string>
<string name="user_data_import_success">User data imported successfully</string>
<string name="user_data_export_cancelled">Export cancelled</string>
+ <string name="user_data_import_failed_description">Make sure the user data folders are at the root of the zip folder and contain a config file at config/config.ini and try again.</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>
@@ -230,6 +231,7 @@
<string name="string_import">Import</string>
<string name="export">Export</string>
<string name="export_failed">Export failed</string>
+ <string name="import_failed">Import failed</string>
<string name="cancelling">Cancelling</string>
<!-- GPU driver installation -->