diff options
Diffstat (limited to 'games/qnetwalk/patches/patch-ac')
-rw-r--r-- | games/qnetwalk/patches/patch-ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/games/qnetwalk/patches/patch-ac b/games/qnetwalk/patches/patch-ac new file mode 100644 index 00000000000..f3dcb3eb29f --- /dev/null +++ b/games/qnetwalk/patches/patch-ac @@ -0,0 +1,16 @@ +$NetBSD: patch-ac,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $ + +--- mainwindow.cpp.orig 2004-12-15 00:28:42.000000000 +0600 ++++ mainwindow.cpp +@@ -36,10 +36,7 @@ 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/"; ++ soundpath = "@QNETWALK_DATA@"; + + winsound = new QSound(soundpath + "win.wav"); + turnsound = new QSound(soundpath + "turn.wav"); |