summaryrefslogtreecommitdiff
path: root/src/profile.h
diff options
context:
space:
mode:
authorEran Mizrahi <erasmux@gmail.com>2017-12-17 21:05:18 +0200
committerEran Mizrahi <erasmux@gmail.com>2017-12-18 20:04:44 +0200
commitff31ce636b68a19949d6e4049d20f7cf88e29f99 (patch)
tree1ef28878f4a56e2d86c0072c668db00a2434b389 /src/profile.h
parent90421277e7ed0044b499d81f06df95bf62111ce9 (diff)
Fix mod rename with custom profiles path
Diffstat (limited to 'src/profile.h')
-rw-r--r--src/profile.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/profile.h b/src/profile.h
index edbbffe7..3e620b3c 100644
--- a/src/profile.h
+++ b/src/profile.h
@@ -89,6 +89,9 @@ public:
**/
static Profile *createPtrFrom(const QString &name, const Profile &reference, MOBase::IPluginGame const *gamePlugin);
+
+ static void renameModInAllProfiles(const QString& oldName, const QString& newName);
+
void writeModlist();
void writeModlistNow(bool onlyIfPending=false);
@@ -331,6 +334,8 @@ private:
void touchFile(QString fileName);
void finishChangeStatus() const;
+ static void renameModInList(QFile &modList, const QString &oldName, const QString &newName);
+
private:
QDir m_Directory;