diff options
Diffstat (limited to 'path_functions.cpp')
| -rw-r--r-- | path_functions.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/path_functions.cpp b/path_functions.cpp index 41793b42..e91b2732 100644 --- a/path_functions.cpp +++ b/path_functions.cpp @@ -18,19 +18,15 @@ QString AOApplication::get_base_path() #elif defined(ANDROID) return "/storage/extSdCard/AO2/"; #else - QString default_path = "/base/"; - QString alt_path = "/data/"; - - if (dir_exists(default_path)) - return QDir::currentPath() + default_path; - else if (dir_exists(alt_path)) - return QDir::currentPath() + alt_path; - else - return QDir::currentPath() + default_path; - + return QDir::currentPath() + "/base/"; #endif } +QString AOApplication::get_data_path() +{ + return get_base_path() + "data/"; +} + QString AOApplication::get_theme_path() { return get_base_path() + "themes/" + user_theme.toLower() + "/"; |
