diff options
author | merumelu <merumelu@protonmail.com> | 2018-11-12 14:34:27 +0100 |
---|---|---|
committer | merumelu <merumelu@protonmail.com> | 2018-11-12 14:35:32 +0100 |
commit | 660395153f834adc1492f44a896f57dfd136d436 (patch) | |
tree | c478e274cf72abe9d04bb1e0277fd504ac4510da /servers | |
parent | baa8678d2a8b4564b984d869e737f94f5720ff54 (diff) |
Use `ResourceLoader::exists` to check for default audio bus layout
Diffstat (limited to 'servers')
-rw-r--r-- | servers/audio_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp index b41fcac8fa..33d1e72669 100644 --- a/servers/audio_server.cpp +++ b/servers/audio_server.cpp @@ -1017,7 +1017,7 @@ void AudioServer::update() { void AudioServer::load_default_bus_layout() { - if (FileAccess::exists("res://default_bus_layout.tres")) { + if (ResourceLoader::exists("res://default_bus_layout.tres")) { Ref<AudioBusLayout> default_layout = ResourceLoader::load("res://default_bus_layout.tres"); if (default_layout.is_valid()) { set_bus_layout(default_layout); |