diff options
| author | 2023-12-10 20:50:48 -0500 | |
|---|---|---|
| committer | 2023-12-12 17:25:37 -0500 | |
| commit | 809230f634bcd0fb3ad249578fd7f31e734a0c7d (patch) | |
| tree | 9fe1fef4baae7957ef587dcad6fa981669e8737a /src/android | |
| parent | android: Compare all properties between games in DiffCallback (diff) | |
| download | yuzu-809230f634bcd0fb3ad249578fd7f31e734a0c7d.tar.gz yuzu-809230f634bcd0fb3ad249578fd7f31e734a0c7d.tar.xz yuzu-809230f634bcd0fb3ad249578fd7f31e734a0c7d.zip | |
android: Remove global save import/exporter UI
The original implementation exposed here was fundamentally broken where it would not export or import all of your saves depending on your user profile configuration
Diffstat (limited to 'src/android')
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/InstallableFragment.kt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/InstallableFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/InstallableFragment.kt index 6940fc757..569727b90 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/InstallableFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/InstallableFragment.kt | |||
| @@ -21,8 +21,6 @@ import org.yuzu.yuzu_emu.databinding.FragmentInstallablesBinding | |||
| 21 | import org.yuzu.yuzu_emu.model.HomeViewModel | 21 | import org.yuzu.yuzu_emu.model.HomeViewModel |
| 22 | import org.yuzu.yuzu_emu.model.Installable | 22 | import org.yuzu.yuzu_emu.model.Installable |
| 23 | import org.yuzu.yuzu_emu.ui.main.MainActivity | 23 | import org.yuzu.yuzu_emu.ui.main.MainActivity |
| 24 | import java.time.LocalDateTime | ||
| 25 | import java.time.format.DateTimeFormatter | ||
| 26 | 24 | ||
| 27 | class InstallableFragment : Fragment() { | 25 | class InstallableFragment : Fragment() { |
| 28 | private var _binding: FragmentInstallablesBinding? = null | 26 | private var _binding: FragmentInstallablesBinding? = null |
| @@ -75,28 +73,6 @@ class InstallableFragment : Fragment() { | |||
| 75 | R.string.install_firmware_description, | 73 | R.string.install_firmware_description, |
| 76 | install = { mainActivity.getFirmware.launch(arrayOf("application/zip")) } | 74 | install = { mainActivity.getFirmware.launch(arrayOf("application/zip")) } |
| 77 | ), | 75 | ), |
| 78 | if (mainActivity.savesFolderRoot != "") { | ||
| 79 | Installable( | ||
| 80 | R.string.manage_save_data, | ||
| 81 | R.string.import_export_saves_description, | ||
| 82 | install = { mainActivity.importSaves.launch(arrayOf("application/zip")) }, | ||
| 83 | export = { | ||
| 84 | mainActivity.exportSaves.launch( | ||
| 85 | "yuzu saves - ${ | ||
| 86 | LocalDateTime.now().format( | ||
| 87 | DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm") | ||
| 88 | ) | ||
| 89 | }.zip" | ||
| 90 | ) | ||
| 91 | } | ||
| 92 | ) | ||
| 93 | } else { | ||
| 94 | Installable( | ||
| 95 | R.string.manage_save_data, | ||
| 96 | R.string.import_export_saves_description, | ||
| 97 | install = { mainActivity.importSaves.launch(arrayOf("application/zip")) } | ||
| 98 | ) | ||
| 99 | }, | ||
| 100 | Installable( | 76 | Installable( |
| 101 | R.string.install_prod_keys, | 77 | R.string.install_prod_keys, |
| 102 | R.string.install_prod_keys_description, | 78 | R.string.install_prod_keys_description, |