From 0eb1662a0eaf8eee680cab5b913fff3fcc9b8b2f Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 5 May 2014 18:24:15 +0200 Subject: - 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 --- src/safewritefile.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/safewritefile.h') 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; -- cgit v1.3.1