diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2004-06-02 01:12:36 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2004-06-02 01:12:36 +0000 |
commit | e5a103e962224c36ee5b9c4408066239c2fa1657 (patch) | |
tree | 22a3ab44f6a3487e216dad4c6b23a18b13b8aad6 /games-arcade/insaneodyssey/files | |
parent | arm KEYWORDS (Manifest recommit) (diff) | |
download | gentoo-2-e5a103e962224c36ee5b9c4408066239c2fa1657.tar.gz gentoo-2-e5a103e962224c36ee5b9c4408066239c2fa1657.tar.bz2 gentoo-2-e5a103e962224c36ee5b9c4408066239c2fa1657.zip |
initial commit - ebuild and patch from Alexandru Toma via bug #52697
Diffstat (limited to 'games-arcade/insaneodyssey/files')
-rw-r--r-- | games-arcade/insaneodyssey/files/digest-insaneodyssey-000311 | 1 | ||||
-rw-r--r-- | games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/games-arcade/insaneodyssey/files/digest-insaneodyssey-000311 b/games-arcade/insaneodyssey/files/digest-insaneodyssey-000311 new file mode 100644 index 000000000000..661868ca78b4 --- /dev/null +++ b/games-arcade/insaneodyssey/files/digest-insaneodyssey-000311 @@ -0,0 +1 @@ +MD5 3c75a29bf64b57efaf092bffbbac3af0 io000311.tar.gz 839950 diff --git a/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch b/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch new file mode 100644 index 000000000000..4be3d0f12934 --- /dev/null +++ b/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch @@ -0,0 +1,42 @@ +--- io.cpp.orig 2004-06-01 19:11:16.000000000 +0300 ++++ io.cpp 2004-06-01 19:21:14.000000000 +0300 +@@ -42,7 +42,11 @@ + { + SDL_Surface *image, *surface; + +- image = IMG_Load(datafile); ++ char data_path[100]; ++ strcpy(data_path, "/usr/share/games/insaneodyssey/"); ++ strcat(data_path, datafile); ++ ++ image = IMG_Load(data_path); + if ( image == NULL ) { + fprintf(stderr, "Couldn't load image %s\n", + datafile); +@@ -67,7 +71,11 @@ + { + SDL_Surface *image, *surface; + +- image = IMG_Load(datafile); ++ char data_path[100]; ++ strcpy(data_path, "/usr/share/games/insaneodyssey/"); ++ strcat(data_path, datafile); ++ ++ image = IMG_Load(data_path); + if ( image == NULL ) { + fprintf(stderr, "Couldn't load image %s\n", datafile); + return(NULL); +@@ -87,8 +95,12 @@ + { + SDL_Surface *image; + ++ char data_path[100]; ++ strcpy(data_path, "/usr/share/games/insaneodyssey/"); ++ strcat(data_path, datafile); ++ + /* Load the BMP file into a surface */ +- image = IMG_Load(datafile); ++ image = IMG_Load(data_path); + if ( image == NULL ) { + fprintf(stderr, "Couldn't load %s: %s\n", datafile, + SDL_GetError()); |