diff options
| author | Tannin <devnull@localhost> | 2014-05-05 18:24:15 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-05-05 18:24:15 +0200 |
| commit | 0eb1662a0eaf8eee680cab5b913fff3fcc9b8b2f (patch) | |
| tree | 4cccf64266f73d9acabc15e517abd510da79b582 /src/safewritefile.h | |
| parent | 164ec25a75a9d5b5fcbafbe321935ba37fe0885c (diff) | |
- very effective optimization to findfirstfile-calls
- several configuration files are now only saved to disk if the content actually changed.
This should also get rid of a problem where plugins.txt was re-written immediately after starting the game
(causing a conflict with the game)
- reduced "noise" from hook.dll
- removed some debugging messages
Diffstat (limited to 'src/safewritefile.h')
| -rw-r--r-- | src/safewritefile.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/safewritefile.h b/src/safewritefile.h index 56bd7744..06c22acc 100644 --- a/src/safewritefile.h +++ b/src/safewritefile.h @@ -37,6 +37,10 @@ public: void commit();
+ bool commitIfDifferent(uint &hash);
+
+ uint hash();
+
private:
QString m_FileName;
QTemporaryFile m_TempFile;
|
