aboutsummaryrefslogtreecommitdiff
path: root/path_functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'path_functions.cpp')
-rw-r--r--path_functions.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/path_functions.cpp b/path_functions.cpp
index b1fd116..c07d910 100644
--- a/path_functions.cpp
+++ b/path_functions.cpp
@@ -42,6 +42,19 @@ QString AOApplication::get_music_path()
return get_base_path() + "sounds/music/";
}
+QString AOApplication::get_background_path()
+{
+ if (courtroom_constructed)
+ return w_courtroom->get_background_path();
+ //this function being called when the courtroom isn't constructed makes no sense
+ return "";
+}
+
+QString AOApplication::get_default_background_path()
+{
+ return get_base_path() + "background/gs4/";
+}
+
QString Courtroom::get_background_path()
{
return ao_app->get_base_path() + "background/" + current_background.toLower() + "/";