--- a/QTfrontend/hwform.cpp Sun Nov 09 07:58:56 2008 +0000
+++ b/QTfrontend/hwform.cpp Sun Nov 09 09:47:10 2008 +0000
@@ -697,17 +697,22 @@
{
QString filename;
QByteArray demo = record;
+ QString recordFileName =
+ config->appendDateTimeToRecordName() ?
+ QDateTime::currentDateTime().toString(Qt::ISODate)
+ "LastRound";
+
if (isDemo)
{
demo.replace(QByteArray("\x02TL"), QByteArray("\x02TD"));
demo.replace(QByteArray("\x02TN"), QByteArray("\x02TD"));
demo.replace(QByteArray("\x02TS"), QByteArray("\x02TD"));
- filename = cfgdir->absolutePath() + "/Demos/LastRound.hwd_" + *cProtoVer;
+ filename = cfgdir->absolutePath() + "/Demos/" + recordFileName + ".hwd_" + *cProtoVer;
} else
{
demo.replace(QByteArray("\x02TL"), QByteArray("\x02TS"));
demo.replace(QByteArray("\x02TN"), QByteArray("\x02TS"));
- filename = cfgdir->absolutePath() + "/Saves/LastRound.hws_" + *cProtoVer;
+ filename = cfgdir->absolutePath() + "/Saves/" + recordFileName + ".hws_" + *cProtoVer;
}