You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Replace Array return types with TypedArray
This commit is contained in:
@@ -50,7 +50,7 @@ Error AudioDriverALSA::init_device() {
|
||||
|
||||
// If there is a specified device check that it is really present
|
||||
if (device_name != "Default") {
|
||||
Array list = get_device_list();
|
||||
PackedStringArray list = get_device_list();
|
||||
if (list.find(device_name) == -1) {
|
||||
device_name = "Default";
|
||||
new_device = "Default";
|
||||
@@ -266,8 +266,8 @@ AudioDriver::SpeakerMode AudioDriverALSA::get_speaker_mode() const {
|
||||
return speaker_mode;
|
||||
}
|
||||
|
||||
Array AudioDriverALSA::get_device_list() {
|
||||
Array list;
|
||||
PackedStringArray AudioDriverALSA::get_device_list() {
|
||||
PackedStringArray list;
|
||||
|
||||
list.push_back("Default");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user