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 configurationpull/22/head
parent
698c854d5b
commit
809230f634
|
|
@ -21,8 +21,6 @@ import org.yuzu.yuzu_emu.databinding.FragmentInstallablesBinding
|
||||||
import org.yuzu.yuzu_emu.model.HomeViewModel
|
import org.yuzu.yuzu_emu.model.HomeViewModel
|
||||||
import org.yuzu.yuzu_emu.model.Installable
|
import org.yuzu.yuzu_emu.model.Installable
|
||||||
import org.yuzu.yuzu_emu.ui.main.MainActivity
|
import org.yuzu.yuzu_emu.ui.main.MainActivity
|
||||||
import java.time.LocalDateTime
|
|
||||||
import java.time.format.DateTimeFormatter
|
|
||||||
|
|
||||||
class InstallableFragment : Fragment() {
|
class InstallableFragment : Fragment() {
|
||||||
private var _binding: FragmentInstallablesBinding? = null
|
private var _binding: FragmentInstallablesBinding? = null
|
||||||
|
|
@ -75,28 +73,6 @@ class InstallableFragment : Fragment() {
|
||||||
R.string.install_firmware_description,
|
R.string.install_firmware_description,
|
||||||
install = { mainActivity.getFirmware.launch(arrayOf("application/zip")) }
|
install = { mainActivity.getFirmware.launch(arrayOf("application/zip")) }
|
||||||
),
|
),
|
||||||
if (mainActivity.savesFolderRoot != "") {
|
|
||||||
Installable(
|
|
||||||
R.string.manage_save_data,
|
|
||||||
R.string.import_export_saves_description,
|
|
||||||
install = { mainActivity.importSaves.launch(arrayOf("application/zip")) },
|
|
||||||
export = {
|
|
||||||
mainActivity.exportSaves.launch(
|
|
||||||
"yuzu saves - ${
|
|
||||||
LocalDateTime.now().format(
|
|
||||||
DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")
|
|
||||||
)
|
|
||||||
}.zip"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
Installable(
|
|
||||||
R.string.manage_save_data,
|
|
||||||
R.string.import_export_saves_description,
|
|
||||||
install = { mainActivity.importSaves.launch(arrayOf("application/zip")) }
|
|
||||||
)
|
|
||||||
},
|
|
||||||
Installable(
|
Installable(
|
||||||
R.string.install_prod_keys,
|
R.string.install_prod_keys,
|
||||||
R.string.install_prod_keys_description,
|
R.string.install_prod_keys_description,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue