diff options
| author | Eran Mizrahi <erasmux@gmail.com> | 2017-12-18 00:26:59 +0200 |
|---|---|---|
| committer | Eran Mizrahi <erasmux@gmail.com> | 2017-12-18 20:04:44 +0200 |
| commit | 90421277e7ed0044b499d81f06df95bf62111ce9 (patch) | |
| tree | 5599140fc53f40e2ea1d5b2ffc93a9f8182bfe4e /src/profile.h | |
| parent | 4656ba9447d9bd0ebe5540a54892ec41abda047b (diff) | |
Ensure all mostlist writing is done through the DelayedFileWriter
Diffstat (limited to 'src/profile.h')
| -rw-r--r-- | src/profile.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/profile.h b/src/profile.h index 996e561f..edbbffe7 100644 --- a/src/profile.h +++ b/src/profile.h @@ -89,7 +89,11 @@ public: **/ static Profile *createPtrFrom(const QString &name, const Profile &reference, MOBase::IPluginGame const *gamePlugin); - MOBase::DelayedFileWriter &modlistWriter() { return m_ModListWriter; } + void writeModlist(); + + void writeModlistNow(bool onlyIfPending=false); + + void cancelModlistWrite(); /** * @brief test if this profile uses archive invalidation @@ -297,7 +301,8 @@ signals: public slots: - void writeModlistNow(); + // should only be called by DelayedFileWriter, use writeModlist() and writeModlistNow() instead + void doWriteModlist(); private: |
