mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-08 05:04:54 +00:00
Android: Add emulated Wii Speak
This commit is contained in:
parent
15b614ceef
commit
69a315ecb5
4 changed files with 35 additions and 1 deletions
|
@ -28,6 +28,9 @@
|
||||||
<uses-permission
|
<uses-permission
|
||||||
android:name="android.permission.VIBRATE"
|
android:name="android.permission.VIBRATE"
|
||||||
android:required="false"/>
|
android:required="false"/>
|
||||||
|
<uses-permission
|
||||||
|
android:name="android.permission.RECORD_AUDIO"
|
||||||
|
android:required="false"/>
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:name=".DolphinApplication"
|
android:name=".DolphinApplication"
|
||||||
|
|
|
@ -232,6 +232,18 @@ enum class BooleanSetting(
|
||||||
"EmulateInfinityBase",
|
"EmulateInfinityBase",
|
||||||
false
|
false
|
||||||
),
|
),
|
||||||
|
MAIN_EMULATE_WII_SPEAK(
|
||||||
|
Settings.FILE_DOLPHIN,
|
||||||
|
Settings.SECTION_EMULATED_USB_DEVICES,
|
||||||
|
"EmulateWiiSpeak",
|
||||||
|
false
|
||||||
|
),
|
||||||
|
MAIN_WII_SPEAK_CONNECTED(
|
||||||
|
Settings.FILE_DOLPHIN,
|
||||||
|
Settings.SECTION_EMULATED_USB_DEVICES,
|
||||||
|
"WiiSpeakConnected",
|
||||||
|
false
|
||||||
|
),
|
||||||
MAIN_SHOW_GAME_TITLES(
|
MAIN_SHOW_GAME_TITLES(
|
||||||
Settings.FILE_DOLPHIN,
|
Settings.FILE_DOLPHIN,
|
||||||
Settings.SECTION_INI_ANDROID,
|
Settings.SECTION_INI_ANDROID,
|
||||||
|
@ -917,7 +929,8 @@ enum class BooleanSetting(
|
||||||
MAIN_CUSTOM_RTC_ENABLE,
|
MAIN_CUSTOM_RTC_ENABLE,
|
||||||
MAIN_DSP_JIT,
|
MAIN_DSP_JIT,
|
||||||
MAIN_EMULATE_SKYLANDER_PORTAL,
|
MAIN_EMULATE_SKYLANDER_PORTAL,
|
||||||
MAIN_EMULATE_INFINITY_BASE
|
MAIN_EMULATE_INFINITY_BASE,
|
||||||
|
MAIN_EMULATE_WII_SPEAK
|
||||||
)
|
)
|
||||||
private val NOT_RUNTIME_EDITABLE: Set<BooleanSetting> =
|
private val NOT_RUNTIME_EDITABLE: Set<BooleanSetting> =
|
||||||
HashSet(listOf(*NOT_RUNTIME_EDITABLE_ARRAY))
|
HashSet(listOf(*NOT_RUNTIME_EDITABLE_ARRAY))
|
||||||
|
|
|
@ -892,6 +892,22 @@ class SettingsFragmentPresenter(
|
||||||
0
|
0
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
sl.add(
|
||||||
|
SwitchSetting(
|
||||||
|
context,
|
||||||
|
BooleanSetting.MAIN_EMULATE_WII_SPEAK,
|
||||||
|
R.string.emulate_wii_speak,
|
||||||
|
0
|
||||||
|
)
|
||||||
|
)
|
||||||
|
sl.add(
|
||||||
|
InvertedSwitchSetting(
|
||||||
|
context,
|
||||||
|
BooleanSetting.MAIN_WII_SPEAK_CONNECTED,
|
||||||
|
R.string.disconnect_wii_speak,
|
||||||
|
0
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun addAdvancedSettings(sl: ArrayList<SettingsItem>) {
|
private fun addAdvancedSettings(sl: ArrayList<SettingsItem>) {
|
||||||
|
|
|
@ -941,4 +941,6 @@ It can efficiently compress both junk data and encrypted Wii data.
|
||||||
<string name="incompatible_figure_selected">Incompatible Figure Selected</string>
|
<string name="incompatible_figure_selected">Incompatible Figure Selected</string>
|
||||||
<string name="select_compatible_figure">Please select a compatible figure file</string>
|
<string name="select_compatible_figure">Please select a compatible figure file</string>
|
||||||
|
|
||||||
|
<string name="emulate_wii_speak">Wii Speak</string>
|
||||||
|
<string name="disconnect_wii_speak">Mute Wii Speak</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Add table
Reference in a new issue