--- a/QTfrontend/hwform.cpp Thu Nov 23 22:27:47 2006 +0000
+++ b/QTfrontend/hwform.cpp Fri Nov 24 19:33:43 2006 +0000
@@ -140,7 +140,8 @@
tmpdir.cd("Demos");
tmpdir.setFilter(QDir::Files);
ui.pagePlayDemo->DemosList->clear();
- ui.pagePlayDemo->DemosList->addItems(tmpdir.entryList(QStringList("*.hwd_1")).replaceInStrings(QRegExp("^(.*).hwd_1"), "\\1"));
+ ui.pagePlayDemo->DemosList->addItems(tmpdir.entryList(QStringList("*.hwd_" + cProtoVer))
+ .replaceInStrings(QRegExp("^(.*).hwd_" + cProtoVer), "\\1"));
ui.Pages->setCurrentIndex(ID_PAGE_DEMOS);
}
@@ -202,7 +203,7 @@
return ;
}
game = new HWGame(config, 0);
- game->PlayDemo(cfgdir->absolutePath() + "/Demos/" + curritem->text() + ".hwd_1");
+ game->PlayDemo(cfgdir->absolutePath() + "/Demos/" + curritem->text() + ".hwd_" + cProtoVer);
}
void HWForm::NetConnect()