aboutsummaryrefslogtreecommitdiff
path: root/path_functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'path_functions.cpp')
-rw-r--r--path_functions.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/path_functions.cpp b/path_functions.cpp
index 47fab06..58c7038 100644
--- a/path_functions.cpp
+++ b/path_functions.cpp
@@ -79,7 +79,14 @@ QString AOApplication::get_default_background_path()
QString AOApplication::get_evidence_path()
{
- return get_base_path() + "evidence/";
+ QString default_path = "evidence/";
+ QString alt_path = "items/";
+ if (dir_exists(default_path))
+ return get_base_path() + default_path;
+ else if (dir_exists(alt_path))
+ return get_base_path() + alt_path;
+ else
+ return get_base_path() + default_path;
}
QString Courtroom::get_background_path()