equal
deleted
inserted
replaced
138 QDir tmpdir; |
138 QDir tmpdir; |
139 tmpdir.cd(cfgdir->absolutePath()); |
139 tmpdir.cd(cfgdir->absolutePath()); |
140 tmpdir.cd("Demos"); |
140 tmpdir.cd("Demos"); |
141 tmpdir.setFilter(QDir::Files); |
141 tmpdir.setFilter(QDir::Files); |
142 ui.pagePlayDemo->DemosList->clear(); |
142 ui.pagePlayDemo->DemosList->clear(); |
143 ui.pagePlayDemo->DemosList->addItems(tmpdir.entryList(QStringList("*.hwd_1")).replaceInStrings(QRegExp("^(.*).hwd_1"), "\\1")); |
143 ui.pagePlayDemo->DemosList->addItems(tmpdir.entryList(QStringList("*.hwd_" + cProtoVer)) |
|
144 .replaceInStrings(QRegExp("^(.*).hwd_" + cProtoVer), "\\1")); |
144 ui.Pages->setCurrentIndex(ID_PAGE_DEMOS); |
145 ui.Pages->setCurrentIndex(ID_PAGE_DEMOS); |
145 } |
146 } |
146 |
147 |
147 void HWForm::GoToNet() |
148 void HWForm::GoToNet() |
148 { |
149 { |
200 tr("Please, select demo from the list above"), |
201 tr("Please, select demo from the list above"), |
201 tr("OK")); |
202 tr("OK")); |
202 return ; |
203 return ; |
203 } |
204 } |
204 game = new HWGame(config, 0); |
205 game = new HWGame(config, 0); |
205 game->PlayDemo(cfgdir->absolutePath() + "/Demos/" + curritem->text() + ".hwd_1"); |
206 game->PlayDemo(cfgdir->absolutePath() + "/Demos/" + curritem->text() + ".hwd_" + cProtoVer); |
206 } |
207 } |
207 |
208 |
208 void HWForm::NetConnect() |
209 void HWForm::NetConnect() |
209 { |
210 { |
210 hwnet = new HWNet(config); |
211 hwnet = new HWNet(config); |