Android: Make WFS directory configurable

The Android version of 5ecd5f0. No scoped storage support, though...
This commit is contained in:
JosJuice 2021-12-19 17:49:22 +01:00
parent 26bfe788ba
commit 75bf008aba
3 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ public enum StringSetting implements AbstractStringSetting
""),
MAIN_FS_PATH(Settings.FILE_DOLPHIN, Settings.SECTION_INI_GENERAL, "NANDRootPath", ""),
MAIN_SD_PATH(Settings.FILE_DOLPHIN, Settings.SECTION_INI_GENERAL, "WiiSDCardPath", ""),
MAIN_WFS_PATH(Settings.FILE_DOLPHIN, Settings.SECTION_INI_GENERAL, "WFSPath", ""),
GFX_ENHANCE_POST_SHADER(Settings.FILE_GFX, Settings.SECTION_GFX_ENHANCEMENTS,
"PostProcessingShader", "");

View File

@ -411,6 +411,8 @@ public final class SettingsFragmentPresenter
R.string.resource_pack_path, 0, MainPresenter.REQUEST_DIRECTORY, "/ResourcePacks"));
sl.add(new FilePicker(mContext, StringSetting.MAIN_SD_PATH, R.string.SD_card_path, 0,
MainPresenter.REQUEST_SD_FILE, "/Wii/sd.raw"));
sl.add(new FilePicker(mContext, StringSetting.MAIN_WFS_PATH, R.string.wfs_path, 0,
MainPresenter.REQUEST_DIRECTORY, "/WFS"));
}
private void addGameCubeSettings(ArrayList<SettingsItem> sl)

View File

@ -198,6 +198,7 @@
<string name="load_path">Load Path</string>
<string name="resource_pack_path">Resource Pack Path</string>
<string name="SD_card_path">SD Card Path</string>
<string name="wfs_path">WFS Path</string>
<!-- Graphics Settings -->
<string name="graphics_general">General</string>