summaryrefslogtreecommitdiff
path: root/games/qnetwalk/patches/patch-ac
blob: 9846d083034ab5f8d967d3817156fc2858fb554c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$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");