pathogen (1.1.1-3) 02_fix_paths.diff

Summary

 src/BuildState.cpp |   22 +++++++++++-----------
 src/GameApp.cpp    |    2 +-
 src/sound.cpp      |    2 +-
 3 files changed, 13 insertions(+), 13 deletions(-)

    
download this patch

Patch contents

Index: pathogen-1.1.1/src/BuildState.cpp
===================================================================
--- pathogen-1.1.1.orig/src/BuildState.cpp	2008-04-16 15:42:15.000000000 -0400
+++ pathogen-1.1.1/src/BuildState.cpp	2008-04-16 15:43:20.000000000 -0400
@@ -147,17 +147,17 @@
 
 BOOL BuildState::init()
 {
-    mHexImage = loadImage("data/hex.png");
-    mBallImage = loadImage("data/ball.png");
-    mShineImage = loadImage("data/shine.png");
-    mLinkImages[0] = loadImage("data/link1.png");
-    mLinkImages[1] = loadImage("data/link2.png");
-    mLinkImages[2] = loadImage("data/link3.png");
-    mMapImage = loadImage("data/map.png");
-    mCircleImage = loadImage("data/circle.png");
-    mBlockImage = loadImage("data/block.png");
-    mSquareImage = loadImage("data/square.png");
-    mMapMask = IMG_Load("data/mapmask.png");
+    mHexImage = loadImage("/usr/share/pathogen/hex.png");
+    mBallImage = loadImage("/usr/share/pathogen/ball.png");
+    mShineImage = loadImage("/usr/share/pathogen/shine.png");
+    mLinkImages[0] = loadImage("/usr/share/pathogen/link1.png");
+    mLinkImages[1] = loadImage("/usr/share/pathogen/link2.png");
+    mLinkImages[2] = loadImage("/usr/share/pathogen/link3.png");
+    mMapImage = loadImage("/usr/share/pathogen/map.png");
+    mCircleImage = loadImage("/usr/share/pathogen/circle.png");
+    mBlockImage = loadImage("/usr/share/pathogen/block.png");
+    mSquareImage = loadImage("/usr/share/pathogen/square.png");
+    mMapMask = IMG_Load("/usr/share/pathogen/mapmask.png");
 
     return TRUE;
 }
Index: pathogen-1.1.1/src/GameApp.cpp
===================================================================
--- pathogen-1.1.1.orig/src/GameApp.cpp	2008-04-16 15:43:35.000000000 -0400
+++ pathogen-1.1.1/src/GameApp.cpp	2008-04-16 15:44:29.000000000 -0400
@@ -46,7 +46,7 @@
     if (!result)
         return result;
 
-    mFont = new Font("data/font.png");
+    mFont = new Font("/usr/share/pathogen/font.png");
 
     mBuildState = new BuildState;
     mBuildState->init();
Index: pathogen-1.1.1/src/sound.cpp
===================================================================
--- pathogen-1.1.1.orig/src/sound.cpp	2008-04-16 15:44:35.000000000 -0400
+++ pathogen-1.1.1/src/sound.cpp	2008-04-16 15:44:55.000000000 -0400
@@ -24,7 +24,7 @@
 
 
 #define CHANNELS    8
-#define MUSICFILE   "data/music.s3m"
+#define MUSICFILE   "/usr/share/pathogen/music.s3m"
 #define MUSICVOLMUL 0.7f
 #define SFXVOLMUL   0.85f