aboutsummaryrefslogtreecommitdiff
path: root/path_functions.cpp
blob: 0093e4df57850092e9febdd7f7fca5bf55d31086 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "aoapplication.h"

#include <QDir>
#include <QDebug>

QString AOApplication::get_base_path(){

#ifdef OMNI_DEBUG
  return "/media/omnitroid/Data/winshare/AO/client/base/";
#else
  return (QDir::currentPath() + "/base/");
#endif

}

QString AOApplication::get_theme_path()
{
  return get_base_path() + "themes/" + user_theme.toLower() + "/";
}

QString AOApplication::get_default_theme_path()
{
  return get_base_path() + "themes/default/";
}

QString AOApplication::get_character_path(QString p_character)
{
  return get_base_path() + "characters/" + p_character.toLower() + "/";
}

QString AOApplication::get_demothings_path()
{
  return get_base_path() + "misc/demothings/";
}