add setting to import or export emu files

This commit is contained in:
izzy2lost
2026-03-24 13:02:33 -04:00
parent 15f102d257
commit bc3aae545d
3 changed files with 629 additions and 2 deletions
File diff suppressed because it is too large Load Diff
@@ -836,6 +836,31 @@
android:layout_marginBottom="8dp"
android:text="@string/settings_clear_debug_log_action" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="10dp"
android:text="@string/settings_emulator_files_hint"
android:textAppearance="@style/TextAppearance.Material3.BodySmall"
android:textColor="@color/xemu_text_muted" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_import_emulator_files"
style="@style/Widget.Xemu.Button.Outlined.Pill"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:text="@string/settings_import_emulator_files_action" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_export_emulator_files"
style="@style/Widget.Xemu.Button.Outlined.Pill"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:text="@string/settings_export_emulator_files_action" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_clear_system_cache"
style="@style/Widget.Xemu.Button.Outlined.Pill"
@@ -284,6 +284,28 @@
<string name="settings_clear_debug_log_action">Clear Debug Log</string>
<string name="settings_clear_debug_log_success">Debug log cleared</string>
<string name="settings_clear_debug_log_empty">Debug log is already clear.</string>
<string name="settings_emulator_files_hint">Back up or restore hdd.img, xemu.toml, eeprom.bin, flash.bin, and mcpx.bin. Export creates one ZIP package. Import accepts either a ZIP or files with those exact names.</string>
<string name="settings_import_emulator_files_action">Import Emulator Files</string>
<string name="settings_import_emulator_files_message">Importing replaces matching local emulator files and reloads this settings screen. Unsaved changes on this page will be discarded.</string>
<string name="settings_import_emulator_files_continue">Choose Source</string>
<string name="settings_import_emulator_files_source_title">Choose Import Source</string>
<string name="settings_import_emulator_files_source_zip">Import ZIP</string>
<string name="settings_import_emulator_files_source_files">Import Files</string>
<string name="settings_import_emulator_files_pick_zip_error">Please pick a ZIP file that contains emulator files.</string>
<string name="settings_import_emulator_files_pick_files_error">Pick one or more files named hdd.img, xemu.toml, eeprom.bin, flash.bin, or mcpx.bin.</string>
<string name="settings_import_emulator_files_open_failed">Could not open the selected import source.</string>
<string name="settings_import_emulator_files_zip_empty">The selected ZIP does not contain any recognized emulator files.</string>
<string name="settings_import_emulator_files_duplicate">The selected import contains %1$s more than once.</string>
<string name="settings_import_emulator_files_working">Importing emulator files...</string>
<string name="settings_import_emulator_files_success">Imported: %1$s</string>
<string name="settings_import_emulator_files_failed">Failed to import emulator files: %1$s</string>
<string name="settings_import_emulator_files_unknown_error">unknown error</string>
<string name="settings_export_emulator_files_action">Export Emulator Files</string>
<string name="settings_export_emulator_files_empty">No emulator files are available to export yet.</string>
<string name="settings_export_emulator_files_working">Exporting emulator files...</string>
<string name="settings_export_emulator_files_open_failed">Could not open the selected export location.</string>
<string name="settings_export_emulator_files_success">Exported %1$d emulator files</string>
<string name="settings_export_emulator_files_failed">Failed to export emulator files: %1$s</string>
<string name="settings_clear_cache_title">Clear Cache</string>
<string name="settings_clear_cache_message">Clear emulator cache files now? This removes shader and app cache data, but keeps your games, saves, and HDD image.</string>
<string name="settings_clear_cache_action">Clear Cache</string>