r10504 - in packages/trunk/invaders/debian: . patches

Fabian Greffrath fabian-guest at alioth.debian.org
Thu Nov 12 14:32:02 UTC 2009


Author: fabian-guest
Date: 2009-11-12 14:32:02 +0000 (Thu, 12 Nov 2009)
New Revision: 10504

Added:
   packages/trunk/invaders/debian/patches/03-reboot-on-esc.patch
Modified:
   packages/trunk/invaders/debian/changelog
   packages/trunk/invaders/debian/patches/series
Log:
  * debian/patches/03-reboot-on-esc.patch: New patch, perform a reboot
    when the ESC key is pressed. Relies on the keyboard controller available
    at port 0x64, so may most likely not work on non PC/BIOS-systems.



Modified: packages/trunk/invaders/debian/changelog
===================================================================
--- packages/trunk/invaders/debian/changelog	2009-11-11 20:39:39 UTC (rev 10503)
+++ packages/trunk/invaders/debian/changelog	2009-11-12 14:32:02 UTC (rev 10504)
@@ -1,13 +1,19 @@
 invaders (1.0.0-10) UNRELEASED; urgency=low
 
+  [ Stefan Potyra ]
   * Fix build failures if stack-protector is enabled by default,
     thanks to Kees Cook for the patches:
     + rename debian/patches/02-amd64.patch to 02-gcc-ldflags.patch
     + move -nostdlib to CFLAGS, as it's a compiler flag
     + use CFLAGS for linking as well (since gcc is used)
 
- -- Stefan Potyra <sistpoty at ubuntu.com>  Fri, 30 Oct 2009 22:19:42 +0100
+  [ Fabian Greffrath ]
+  * debian/patches/03-reboot-on-esc.patch: New patch, perform a reboot
+    when the ESC key is pressed. Relies on the keyboard controller available
+    at port 0x64, so may most likely not work on non PC/BIOS-systems.
 
+ -- Fabian Greffrath <fabian at debian-unofficial.org>  Thu, 12 Nov 2009 15:27:25 +0100
+
 invaders (1.0.0-9) unstable; urgency=low
 
   [ Fabian Greffrath ]

Added: packages/trunk/invaders/debian/patches/03-reboot-on-esc.patch
===================================================================
--- packages/trunk/invaders/debian/patches/03-reboot-on-esc.patch	                        (rev 0)
+++ packages/trunk/invaders/debian/patches/03-reboot-on-esc.patch	2009-11-12 14:32:02 UTC (rev 10504)
@@ -0,0 +1,26 @@
+Reboot the machine when the ESC key is pressed.
+
+--- invaders-1.0.0.orig/game.c
++++ invaders-1.0.0/game.c
+@@ -19,6 +19,11 @@
+ 
+ static bool gameover, winner;
+ 
++static inline void reboot()
++{
++  __asm__ __volatile__ ("outb %b0,%w1": :"a" (0xfe), "Nd" (0x64));
++}
++
+ void resetgame()
+ {
+   gameover=false;
+@@ -120,6 +125,9 @@
+       break;
+     case 'x':
+       return;
++    case '@':
++      reboot();
++      break;
+     };
+   };
+ };


Property changes on: packages/trunk/invaders/debian/patches/03-reboot-on-esc.patch
___________________________________________________________________
Added: svn:executable
   + *

Modified: packages/trunk/invaders/debian/patches/series
===================================================================
--- packages/trunk/invaders/debian/patches/series	2009-11-11 20:39:39 UTC (rev 10503)
+++ packages/trunk/invaders/debian/patches/series	2009-11-12 14:32:02 UTC (rev 10504)
@@ -1,2 +1,3 @@
 01-pointer-targets-differ-in-signedness.patch
 02-gcc-ldflags.patch
+03-reboot-on-esc.patch




More information about the Pkg-games-commits mailing list