mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 06:14: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
|
||||
android:name="android.permission.VIBRATE"
|
||||
android:required="false"/>
|
||||
<uses-permission
|
||||
android:name="android.permission.RECORD_AUDIO"
|
||||
android:required="false"/>
|
||||
|
||||
<application
|
||||
android:name=".DolphinApplication"
|
||||
|
|
|
@ -232,6 +232,18 @@ enum class BooleanSetting(
|
|||
"EmulateInfinityBase",
|
||||
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(
|
||||
Settings.FILE_DOLPHIN,
|
||||
Settings.SECTION_INI_ANDROID,
|
||||
|
@ -917,7 +929,8 @@ enum class BooleanSetting(
|
|||
MAIN_CUSTOM_RTC_ENABLE,
|
||||
MAIN_DSP_JIT,
|
||||
MAIN_EMULATE_SKYLANDER_PORTAL,
|
||||
MAIN_EMULATE_INFINITY_BASE
|
||||
MAIN_EMULATE_INFINITY_BASE,
|
||||
MAIN_EMULATE_WII_SPEAK
|
||||
)
|
||||
private val NOT_RUNTIME_EDITABLE: Set<BooleanSetting> =
|
||||
HashSet(listOf(*NOT_RUNTIME_EDITABLE_ARRAY))
|
||||
|
|
|
@ -892,6 +892,22 @@ class SettingsFragmentPresenter(
|
|||
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>) {
|
||||
|
|
|
@ -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="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>
|
||||
|
|
Loading…
Add table
Reference in a new issue