--- a/QTfrontend/hwform.cpp Sun Aug 06 15:47:20 2006 +0000
+++ b/QTfrontend/hwform.cpp Sun Aug 06 15:48:48 2006 +0000
@@ -132,7 +132,7 @@
void HWForm::GoToDemos()
{
QDir tmpdir;
- tmpdir.cd(DATA_PATH);
+ tmpdir.cd(datadir->absolutePath());
tmpdir.cd("Demos");
tmpdir.setFilter(QDir::Files);
ui.pagePlayDemo->DemosList->clear();
@@ -196,7 +196,7 @@
return ;
}
game = new HWGame(config, 0);
- game->PlayDemo(QString(DATA_PATH) + "/Demos/" + curritem->text() + ".hwd_1");
+ game->PlayDemo(datadir->absolutePath() + "/Demos/" + curritem->text() + ".hwd_1");
}
void HWForm::NetConnect()