summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h37
1 files changed, 10 insertions, 27 deletions
diff --git a/src/settings.h b/src/settings.h
index 810daac2..698cfe21 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -199,26 +199,19 @@ public:
**/
QString getSteamAppID() const;
- /**
- * retrieves the base directory under which the other directories usually
- * reside
- */
QString getBaseDirectory() const;
-
- /**
- * retrieve the directory where downloads are stored (with native separators)
- **/
QString getDownloadDirectory(bool resolve = true) const;
-
- /**
- * retrieve the directory where mods are stored (with native separators)
- **/
QString getModDirectory(bool resolve = true) const;
-
- /**
- * retrieve the directory where the web cache is stored (with native separators)
- **/
QString getCacheDirectory(bool resolve = true) const;
+ QString getProfileDirectory(bool resolve = true) const;
+ QString getOverwriteDirectory(bool resolve = true) const;
+
+ void setBaseDirectory(const QString& path);
+ void setDownloadDirectory(const QString& path);
+ void setModDirectory(const QString& path);
+ void setCacheDirectory(const QString& path);
+ void setProfileDirectory(const QString& path);
+ void setOverwriteDirectory(const QString& path);
/**
* retrieve the directory where the managed game is stored (with native separators)
@@ -293,17 +286,6 @@ public:
/**
- * retrieve the directory where profiles stored (with native separators)
- **/
- QString getProfileDirectory(bool resolve = true) const;
-
- /**
- * retrieve the directory were new files are stored that can't be assigned
- * to a mod (with native separators)
- */
- QString getOverwriteDirectory(bool resolve = true) const;
-
- /**
* @return true if the user has set up automatic login to nexus
**/
bool automaticLoginEnabled() const;
@@ -558,6 +540,7 @@ private:
void readPluginBlacklist();
QString getConfigurablePath(const QString &key, const QString &def, bool resolve) const;
+ void setConfigurablePath(const QString &key, const QString& path);
};
#endif // SETTINGS_H