aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index fe3517d1..da891168 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -4509,6 +4509,12 @@ void Courtroom::set_sfx_dropdown()
sound_list = ao_app->get_list_file(
ao_app->get_character_path(current_char, "soundlist.ini"));
+ // If AO2 sound list is empty, try to find the DRO one.
+ if (sound_list.isEmpty()) {
+ sound_list = ao_app->get_list_file(
+ ao_app->get_character_path(current_char, "sounds.ini"));
+ }
+
// Append default sound list after the character sound list.
sound_list += ao_app->get_list_file(
ao_app->get_base_path() + "soundlist.ini");
@@ -4575,6 +4581,10 @@ void Courtroom::on_sfx_edit_requested()
{
QString p_path = ao_app->get_real_path(ao_app->get_character_path(current_char, "soundlist.ini"));
if (!file_exists(p_path)) {
+ p_path = ao_app->get_real_path(ao_app->get_character_path(current_char, "sounds.ini"));
+ }
+
+ if (!file_exists(p_path)) {
p_path = ao_app->get_base_path() + "soundlist.ini";
}
QDesktopServices::openUrl(QUrl::fromLocalFile(p_path));