Fix for NSIS .lnk workaround
authorunc0rr
Fri, 23 Feb 2007 19:55:53 +0000
changeset 490 4cddbd75a79b
parent 489 6b0ced304920
child 491 eadeccaf52ab
Fix for NSIS .lnk workaround
QTfrontend/main.cpp.in
--- a/QTfrontend/main.cpp.in	Fri Feb 23 17:34:30 2007 +0000
+++ b/QTfrontend/main.cpp.in	Fri Feb 23 19:55:53 2007 +0000
@@ -69,7 +69,8 @@
 	}
 	cfgdir->cd(".hedgewars");
 
-	datadir = new QDir("${HEDGEWARS_DATADIR}");
+	datadir = new QDir(mydir);
+	datadir->cd("${HEDGEWARS_DATADIR}");
 	if(!datadir->cd("hedgewars/Data")) {
 		QMessageBox::critical(0, QMessageBox::tr("Error"), 
 			QMessageBox::tr("Failed to open data directory:\n%1\n"