pkgsrc/games/qnetwalk/patches/patch-ac
wiz a069686eb8 Update to 1.2, provided by Ian Zagorskih in PR 29941.
2005-04-10  * QNetWalk 1.2 released.
	    * Added German translation by Thomas Loeber
	    * Added Spanish translation by Ismael Asensio
	    * Added Polish translation by Aleksander Wojdyga
	    * Added Brazilian Portuguese translation by Paulo Vitor
	    * Added the desktop file.
2005-10-13 18:01:27 +00:00

20 lines
773 B
Text

$NetBSD: patch-ac,v 1.2 2005/10/13 18:01:27 wiz Exp $
--- mainwindow.cpp.orig 2005-04-11 01:13:54.000000000 +0700
+++ mainwindow.cpp
@@ -36,10 +36,11 @@ MainWindow::MainWindow() : QMainWindow(0
contrdirs[Cell::D] = Cell::U;
contrdirs[Cell::L] = Cell::R;
- QString appdir = qApp->applicationDirPath();
- soundpath = appdir + "/sounds/";
- if(!QFile::exists(soundpath))
- soundpath = appdir + "/../share/qnetwalk/sounds/";
+ //QString appdir = qApp->applicationDirPath();
+ //soundpath = appdir + "/sounds/";
+ //if(!QFile::exists(soundpath))
+ //soundpath = appdir + "/../share/qnetwalk/sounds/";
+ soundpath = "@QNETWALK_DATA@";
winsound = new QSound(soundpath + "win.wav");
turnsound = new QSound(soundpath + "turn.wav");