Moved extension and basename stuff to demo_scan_file(), so
[neverball] / ball / st_shared.c
index 0147c53..65c2aca 100644 (file)
@@ -1,3 +1,18 @@
+/*
+ * Copyright (C) 2003 Robert Kooima - 2006 Jean Privat
+ * Part of the Neverball Project http://icculus.org/neverball/
+ *
+ * NEVERBALL is  free software; you can redistribute  it and/or modify
+ * it under the  terms of the GNU General  Public License as published
+ * by the Free  Software Foundation; either version 2  of the License,
+ * or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT  ANY  WARRANTY;  without   even  the  implied  warranty  of
+ * MERCHANTABILITY or  FITNESS FOR A PARTICULAR PURPOSE.   See the GNU
+ * General Public License for more details.
+ */
+
 #include "gui.h"
 #include "config.h"
 #include "audio.h"
@@ -58,8 +73,8 @@ void shared_stick(int id, int a, int v)
 int shared_click(int b, int d)
 {
     if (b < 0 && d == 1)
-       return st_buttn(config_get_d(CONFIG_JOYSTICK_BUTTON_A), 1);
-    else 
-       return 1;
+        return st_buttn(config_get_d(CONFIG_JOYSTICK_BUTTON_A), 1);
+    else
+        return 1;
 }