author | mickeyl <mickeyl> | 2004-01-20 15:51:03 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-01-20 15:51:03 (UTC) |
commit | 996826e77a8f96ada424814716178e65caba9287 (patch) (unidiff) | |
tree | 09c60dcc4437dba1838c086b7eeb5480800716d5 /noncore/multimedia/powerchord/gs.cpp | |
parent | 557eb6a25f2cfc6e350c1731ead4df0e07861f25 (diff) | |
download | opie-996826e77a8f96ada424814716178e65caba9287.zip opie-996826e77a8f96ada424814716178e65caba9287.tar.gz opie-996826e77a8f96ada424814716178e65caba9287.tar.bz2 |
package the guitar sample
fix reading from share/powerchord/
Diffstat (limited to 'noncore/multimedia/powerchord/gs.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/powerchord/gs.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/multimedia/powerchord/gs.cpp b/noncore/multimedia/powerchord/gs.cpp index a3e85c9..fdcfb74 100644 --- a/noncore/multimedia/powerchord/gs.cpp +++ b/noncore/multimedia/powerchord/gs.cpp | |||
@@ -19,4 +19,5 @@ | |||
19 | //#include <qpainter.h> | 19 | //#include <qpainter.h> |
20 | #include <qmessagebox.h> | 20 | #include <qmessagebox.h> |
21 | #include <qstring.h> | ||
21 | 22 | ||
22 | 23 | ||
@@ -74,5 +75,9 @@ gs::gs() | |||
74 | 75 | ||
75 | int raw_fd; | 76 | int raw_fd; |
76 | raw_fd = open(ACGUITAR_PATH_S, O_RDONLY); | 77 | |
78 | QString path = getenv( "OPIEDIR" ); | ||
79 | path.append( "/share/powerchord/acguitar.raw" ); | ||
80 | |||
81 | raw_fd = open( (const char*) path, O_RDONLY); | ||
77 | 82 | ||
78 | if (raw_fd < 0){ | 83 | if (raw_fd < 0){ |