From ff31ce636b68a19949d6e4049d20f7cf88e29f99 Mon Sep 17 00:00:00 2001 From: Eran Mizrahi Date: Sun, 17 Dec 2017 21:05:18 +0200 Subject: Fix mod rename with custom profiles path --- src/profile.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/profile.h') 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; -- cgit v1.3.1