aboutsummaryrefslogtreecommitdiff
path: root/path_functions.cpp
blob: 0282bd4f5a4c6de88b876978d683f7e780ae1074 (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
#include "path_functions.h"

#include "global_variables.h"
#include "text_file_functions.h"

#include <QDir>
#include <QDebug>

QString get_base_path(){
  return (QDir::currentPath() + "/base/");
}

QString get_theme_path()
{
  return get_base_path() + "themes/" + g_user_theme.toLower() + "/";
}

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

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

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