diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-01-22 17:58:34 +0100 |
|---|---|---|
| committer | Al <gabriel.cortesi@outlook.com> | 2019-01-22 17:58:34 +0100 |
| commit | a40613f885c18a8a9f090cd88c595bcb960d97c9 (patch) | |
| tree | 72e83683c89e360efb1b050b8f3e188161955f1c /src/modinforegular.h | |
| parent | 917c08cd5f87bd06e872b6fb99e00cb5ef5d0066 (diff) | |
Cache list of archives contained in a mod instead of accessing disk each time
Diffstat (limited to 'src/modinforegular.h')
| -rw-r--r-- | src/modinforegular.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modinforegular.h b/src/modinforegular.h index 33b26998..093b4e5b 100644 --- a/src/modinforegular.h +++ b/src/modinforegular.h @@ -320,7 +320,7 @@ public: */ virtual QDateTime getLastNexusQuery() const; - virtual QStringList archives() const; + virtual QStringList archives(bool checkOnDisk = false); virtual void setColor(QColor color); @@ -371,6 +371,8 @@ private: QString m_URL; QString m_GameName; + mutable QStringList m_Archives; + QDateTime m_CreationTime; QDateTime m_LastNexusQuery; |
