if on dev version append hg revision id to demos/saves' filenames
authorsheepluva
Wed, 02 Feb 2011 07:40:36 +0100
changeset 4902 45ec26ca9491
parent 4901 d1e2d82d9ccc
child 4903 21dd1def5aaf
if on dev version append hg revision id to demos/saves' filenames
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Tue Feb 01 19:49:10 2011 +0100
+++ b/QTfrontend/hwform.cpp	Wed Feb 02 07:40:36 2011 +0100
@@ -1017,6 +1017,10 @@
                 QDateTime::currentDateTime().toString("yyyy-MM-dd_hh-mm") :
                 "LastRound";
 
+    QStringList versionParts = cVersionString->split('-');
+    if ( (versionParts.size() == 2) && (!versionParts[1].isEmpty()) && (versionParts[1].contains(':')) )
+        recordFileName = recordFileName + "_" + versionParts[1].replace(':','-');
+
     if (isDemo)
     {
         demo.replace(QByteArray("\x02TL"), QByteArray("\x02TD"));