r3854 - in packages/trunk/torus-trooper/debian: . patches
Miriam Ruiz
baby-guest at alioth.debian.org
Sun Aug 26 18:17:15 UTC 2007
Author: baby-guest
Date: 2007-08-26 18:17:15 +0000 (Sun, 26 Aug 2007)
New Revision: 3854
Added:
packages/trunk/torus-trooper/debian/patches/directories.patch
packages/trunk/torus-trooper/debian/patches/windowed.patch
Modified:
packages/trunk/torus-trooper/debian/patches/series
packages/trunk/torus-trooper/debian/torus-trooper-data.install
Log:
Use aboslute directories
Start in windowed mode
Added: packages/trunk/torus-trooper/debian/patches/directories.patch
===================================================================
--- packages/trunk/torus-trooper/debian/patches/directories.patch (rev 0)
+++ packages/trunk/torus-trooper/debian/patches/directories.patch 2007-08-26 18:17:15 UTC (rev 3854)
@@ -0,0 +1,51 @@
+# Copyright (C) 2007 Miriam Ruiz <little_miry at yahoo.es>
+# Distributed under the same license as the game. See debian/copyright.
+
+Index: torus-trooper-0.22.dfsg1/src/abagames/tt/barrage.d
+===================================================================
+--- torus-trooper-0.22.dfsg1.orig/src/abagames/tt/barrage.d 2007-08-26 18:11:25.000000000 +0000
++++ torus-trooper-0.22.dfsg1/src/abagames/tt/barrage.d 2007-08-26 18:13:01.000000000 +0000
+@@ -96,7 +96,7 @@
+ private:
+ static BulletMLParserTinyXML *parser[char[]][char[]];
+ static BulletMLParserTinyXML *parser2[char[]];
+- static const char[] BARRAGE_DIR_NAME = "barrage";
++ static const char[] BARRAGE_DIR_NAME = "/usr/share/games/torus-trooper/barrage";
+
+ public static void load() {
+ char[][] dirs = linux_listdir.listdir(BARRAGE_DIR_NAME);
+Index: torus-trooper-0.22.dfsg1/src/abagames/util/sdl/sound.d
+===================================================================
+--- torus-trooper-0.22.dfsg1.orig/src/abagames/util/sdl/sound.d 2007-08-26 18:09:49.000000000 +0000
++++ torus-trooper-0.22.dfsg1/src/abagames/util/sdl/sound.d 2007-08-26 18:10:56.000000000 +0000
+@@ -67,7 +67,7 @@
+ public class Music: Sound {
+ public:
+ static int fadeOutSpeed = 1280;
+- static char[] dir = "sounds/musics";
++ static char[] dir = "/usr/share/games/torus-trooper/sounds/musics";
+ private:
+ Mix_Music* music;
+
+@@ -131,7 +131,7 @@
+
+ public class Chunk: Sound {
+ public:
+- static char[] dir = "sounds/chunks";
++ static char[] dir = "/usr/share/games/torus-trooper/sounds/chunks";
+ private:
+ Mix_Chunk* chunk;
+ int chunkChannel;
+Index: torus-trooper-0.22.dfsg1/src/abagames/util/sdl/texture.d
+===================================================================
+--- torus-trooper-0.22.dfsg1.orig/src/abagames/util/sdl/texture.d 2007-08-26 18:08:31.000000000 +0000
++++ torus-trooper-0.22.dfsg1/src/abagames/util/sdl/texture.d 2007-08-26 18:09:11.000000000 +0000
+@@ -15,7 +15,7 @@
+ */
+ public class Texture {
+ public:
+- static char[] imagesDir = "images/";
++ static char[] imagesDir = "/usr/share/games/torus-trooper/images/";
+ private:
+ GLuint num;
+
Modified: packages/trunk/torus-trooper/debian/patches/series
===================================================================
--- packages/trunk/torus-trooper/debian/patches/series 2007-08-26 17:59:29 UTC (rev 3853)
+++ packages/trunk/torus-trooper/debian/patches/series 2007-08-26 18:17:15 UTC (rev 3854)
@@ -1 +1,3 @@
fixes.patch
+directories.patch
+windowed.patch
Added: packages/trunk/torus-trooper/debian/patches/windowed.patch
===================================================================
--- packages/trunk/torus-trooper/debian/patches/windowed.patch (rev 0)
+++ packages/trunk/torus-trooper/debian/patches/windowed.patch 2007-08-26 18:17:15 UTC (rev 3854)
@@ -0,0 +1,37 @@
+# Copyright (C) 2007 Miriam Ruiz <little_miry at yahoo.es>
+# Distributed under the same license as the game. See debian/copyright.
+
+Index: torus-trooper-0.22.dfsg1/src/abagames/tt/boot.d
+===================================================================
+--- torus-trooper-0.22.dfsg1.orig/src/abagames/tt/boot.d 2007-08-26 18:14:13.000000000 +0000
++++ torus-trooper-0.22.dfsg1/src/abagames/tt/boot.d 2007-08-26 18:15:11.000000000 +0000
+@@ -129,6 +129,9 @@
+ case "-window":
+ Screen.windowMode = true;
+ break;
++ case "-fullscreen":
++ Screen.windowMode = false;
++ break;
+ case "-res":
+ if (i >= args.length - 2) {
+ usage(progName);
+@@ -169,5 +172,5 @@
+
+ private void usage(char[] progName) {
+ Logger.error
+- ("Usage: " ~ progName ~ " [-brightness [0-100]] [-luminosity [0-100]] [-window] [-res x y] [-nosound]");
++ ("Usage: " ~ progName ~ " [-brightness [0-100]] [-luminosity [0-100]] [-window] [-fullscreen] [-res x y] [-nosound]");
+ }
+Index: torus-trooper-0.22.dfsg1/src/abagames/util/sdl/screen3d.d
+===================================================================
+--- torus-trooper-0.22.dfsg1.orig/src/abagames/util/sdl/screen3d.d 2007-08-26 18:15:51.000000000 +0000
++++ torus-trooper-0.22.dfsg1/src/abagames/util/sdl/screen3d.d 2007-08-26 18:16:05.000000000 +0000
+@@ -20,7 +20,7 @@
+ static float brightness = 1;
+ static int width = 640;
+ static int height = 480;
+- static bool windowMode = false;
++ static bool windowMode = true;
+ static float nearPlane = 0.1;
+ static float farPlane = 1000;
+ private:
Modified: packages/trunk/torus-trooper/debian/torus-trooper-data.install
===================================================================
--- packages/trunk/torus-trooper/debian/torus-trooper-data.install 2007-08-26 17:59:29 UTC (rev 3853)
+++ packages/trunk/torus-trooper/debian/torus-trooper-data.install 2007-08-26 18:17:15 UTC (rev 3854)
@@ -1,2 +1,3 @@
-images usr/share/games/a7xpg/
-sounds usr/share/games/a7xpg/
+images usr/share/games/torus-trooper/
+sounds usr/share/games/torus-trooper/
+barrage usr/share/games/torus-trooper/
More information about the Pkg-games-commits
mailing list