diff mde/input/joystick.d @ 67:108d123238c0

Changes to work with tango r3700 (post 0.99.6). Changes to logging. Replaced many uses of PathView with FilePath.
author Diggory Hardy <diggory.hardy@gmail.com>
date Thu, 03 Jul 2008 12:40:31 +0100
parents baa87e68d7dc
children 56c0ddd90193
line wrap: on
line diff
--- a/mde/input/joystick.d	Sun Jun 29 15:40:37 2008 +0100
+++ b/mde/input/joystick.d	Thu Jul 03 12:40:31 2008 +0100
@@ -37,15 +37,14 @@
 */
 void openJoysticks () {
     joysticks = new SDL_Joystick*[SDL_NumJoysticks ()];
-    char tmp[128] = void;
     
     for (int i = 0; i < joysticks.length; ++i) {
         if ((joysticks[i] = SDL_JoystickOpen (i)) is null) {	// null on failure
-            logger.error (logger.format (tmp, "Unable to open joystick {} via SDL", i));
+            logger.error ("Unable to open joystick {} via SDL", i);
         }
     }
     
-    logger.info (logger.format (tmp, "Opened {} joysticks via SDL, succesfully unless preceding errors say otherwise.", joysticks.length));
+    logger.info ("Opened {} joysticks via SDL, succesfully unless preceding errors say otherwise.", joysticks.length);
 }
 
 /// Cleanup fct.