summaryrefslogtreecommitdiff
path: root/src/profile.cpp
diff options
context:
space:
mode:
authorTannin <sherb@gmx.net>2016-02-12 19:08:25 +0100
committerTannin <sherb@gmx.net>2016-02-12 19:08:25 +0100
commit4f8c71d62626aa61fb4d13f80bc043d5e6492c3e (patch)
treec16531f7609668321d780e88a523319d18fc8667 /src/profile.cpp
parentfd68248698357591f99c3091d5b15a3084fc078d (diff)
merged master into new_vfs_library
Diffstat (limited to 'src/profile.cpp')
-rw-r--r--src/profile.cpp36
1 files changed, 26 insertions, 10 deletions
diff --git a/src/profile.cpp b/src/profile.cpp
index 99a6bd90..f4aab46b 100644
--- a/src/profile.cpp
+++ b/src/profile.cpp
@@ -19,31 +19,41 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "profile.h"
-#include "windows_error.h"
#include "modinfo.h"
#include "safewritefile.h"
#include "settings.h"
#include <utility.h>
-#include <util.h>
#include <error_report.h>
-#include <appconfig.h>
+#include "appconfig.h"
#include <iplugingame.h>
#include <report.h>
#include <bsainvalidation.h>
#include <dataarchives.h>
-#include <QMessageBox>
#include <QApplication>
-#include <QSettings>
-#include <QTemporaryFile>
+#include <QFile> // for QFile
+#include <QFlags> // for operator|, QFlags
+#include <QIODevice> // for QIODevice, etc
+#include <QMessageBox>
+#include <QScopedArrayPointer>
+#include <QStringList> // for QStringList
+#include <QtDebug> // for qDebug, qWarning, etc
+#include <QtGlobal> // for qPrintable
+
+#include <Windows.h>
+#include <assert.h> // for assert
+#include <limits.h> // for UINT_MAX, INT_MAX, etc
+#include <stddef.h> // for size_t
+#include <string.h> // for wcslen
+
+#include <algorithm> // for max, min
+#include <exception> // for exception
#include <functional>
+#include <set> // for set
+#include <utility> // for find
#include <stdexcept>
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#include <shlobj.h>
-
using namespace MOBase;
using namespace MOShared;
@@ -690,6 +700,12 @@ QString Profile::absolutePath() const
return QDir::cleanPath(m_Directory.absolutePath());
}
+QString Profile::savePath() const
+{
+ return QDir::cleanPath(m_Directory.absoluteFilePath("saves"));
+
+}
+
void Profile::rename(const QString &newName)
{
QDir profileDir(Settings::instance().getProfileDirectory());