summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-01-14 17:42:38 -0600
committerAndrew <forkk@forkk.net>2013-01-14 17:42:38 -0600
commitfce0f5df045f1d956cabeda41406001a037c9ab7 (patch)
tree269c8dd0ceb5ca94ef3c708c9b225de7189b0719 /util
parent586092cf9901dde873882c76cb3944cd0addbd2a (diff)
downloadMultiMC-fce0f5df045f1d956cabeda41406001a037c9ab7.tar
MultiMC-fce0f5df045f1d956cabeda41406001a037c9ab7.tar.gz
MultiMC-fce0f5df045f1d956cabeda41406001a037c9ab7.tar.lz
MultiMC-fce0f5df045f1d956cabeda41406001a037c9ab7.tar.xz
MultiMC-fce0f5df045f1d956cabeda41406001a037c9ab7.zip
Added stuff.
Diffstat (limited to 'util')
-rw-r--r--util/pathutils.cpp5
-rw-r--r--util/pathutils.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/util/pathutils.cpp b/util/pathutils.cpp
index 809dd6f2..8610b80d 100644
--- a/util/pathutils.cpp
+++ b/util/pathutils.cpp
@@ -26,6 +26,11 @@ QString PathCombine(QString path1, QString path2)
return path1.append(path2);
}
+QString PathCombine(QString path1, QString path2, QString path3)
+{
+ return PathCombine(PathCombine(path1, path2), path3);
+}
+
QString AbsolutePath(QString path)
{
return QFileInfo(path).absolutePath();
diff --git a/util/pathutils.h b/util/pathutils.h
index bfd11bea..1922e3a0 100644
--- a/util/pathutils.h
+++ b/util/pathutils.h
@@ -19,6 +19,7 @@
#include <QString>
QString PathCombine(QString path1, QString path2);
+QString PathCombine(QString path1, QString path2, QString path3);
QString AbsolutePath(QString path);