QTfrontend/hwform.cpp
changeset 2742 21c0d2e69753
parent 2706 935b7d618cf0
child 2773 e94f240a8a41
equal deleted inserted replaced
2741:7a84ce33f52f 2742:21c0d2e69753
   840 	if (isDemo)
   840 	if (isDemo)
   841 	{
   841 	{
   842 		demo.replace(QByteArray("\x02TL"), QByteArray("\x02TD"));
   842 		demo.replace(QByteArray("\x02TL"), QByteArray("\x02TD"));
   843 		demo.replace(QByteArray("\x02TN"), QByteArray("\x02TD"));
   843 		demo.replace(QByteArray("\x02TN"), QByteArray("\x02TD"));
   844 		demo.replace(QByteArray("\x02TS"), QByteArray("\x02TD"));
   844 		demo.replace(QByteArray("\x02TS"), QByteArray("\x02TD"));
   845 		filename = cfgdir->absolutePath() + "/Demos/" + recordFileName + ".hwd_" + *cProtoVer;
   845 		filename = cfgdir->absolutePath() + "/Demos/" + recordFileName + "." + *cProtoVer + ".hwd";
   846 	} else
   846 	} else
   847 	{
   847 	{
   848 		demo.replace(QByteArray("\x02TL"), QByteArray("\x02TS"));
   848 		demo.replace(QByteArray("\x02TL"), QByteArray("\x02TS"));
   849 		demo.replace(QByteArray("\x02TN"), QByteArray("\x02TS"));
   849 		demo.replace(QByteArray("\x02TN"), QByteArray("\x02TS"));
   850 		filename = cfgdir->absolutePath() + "/Saves/" + recordFileName + ".hws_" + *cProtoVer;
   850 		filename = cfgdir->absolutePath() + "/Saves/" + recordFileName + "." + *cProtoVer + ".hws";
   851 	}
   851 	}
   852 
   852 
   853 
   853 
   854 	QFile demofile(filename);
   854 	QFile demofile(filename);
   855 	if (!demofile.open(QIODevice::WriteOnly))
   855 	if (!demofile.open(QIODevice::WriteOnly))