Add a "coin" item type. In effect this makes coin-specific functions
[neverball] / share / base_config.c
index 5124339..371643a 100644 (file)
@@ -13,7 +13,6 @@
  */
 
 #include <SDL.h>
-#include <SDL_mixer.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
@@ -142,9 +141,9 @@ int config_user_path(const char *file)
     {
         size_t d = strlen(dir);
 
-        strncpy(user_path, getenv("HOME"), MAXSTR - 1);
-        strncat(user_path, "/",            MAXSTR - d - 1);
-        strncat(user_path, CONFIG_USER,    MAXSTR - d - 2);
+        strncpy(user_path, dir,         MAXSTR - 1);
+        strncat(user_path, "/",         MAXSTR - d - 1);
+        strncat(user_path, CONFIG_USER, MAXSTR - d - 2);
     }
 
     if ((mkdir(user_path, 0777) == 0) || (errno = EEXIST))