2 * Copyright (C) 2003 Robert Kooima
4 * NEVERBALL is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published
6 * by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
19 * This file contains some constants
20 * And the way to access to directories
24 #include <SDL_endian.h>
26 /*---------------------------------------------------------------------------*/
29 #define VERSION "unknown"
33 #define CONFIG_DATA "./data" /* Game data directory */
37 #define CONFIG_LOCALE "./locale" /* Game localisation */
40 /* User config directory */
43 #define CONFIG_USER "Neverball-dev"
45 #define CONFIG_USER ".neverball-dev"
50 * Global settings are stored in USER_CONFIG_FILE. Replays are stored
51 * in USER_REPLAY_FILE. These files are placed in the user's home
52 * directory as given by the HOME environment var. If the config file
53 * is deleted, it will be recreated using the defaults.
56 #define USER_CONFIG_FILE "neverballrc"
57 #define USER_REPLAY_FILE "Last"
58 #define REPLAY_EXT ".nbr"
60 /*---------------------------------------------------------------------------*/
62 #if SDL_BYTEORDER == SDL_BIG_ENDIAN
63 #define RMASK 0xFF000000
64 #define GMASK 0x00FF0000
65 #define BMASK 0x0000FF00
66 #define AMASK 0x000000FF
68 #define RMASK 0x000000FF
69 #define GMASK 0x0000FF00
70 #define BMASK 0x00FF0000
71 #define AMASK 0xFF000000
82 #define AUDIO_BUFF_HI 2048
83 #define AUDIO_BUFF_LO 1024
92 #define GUI_FACE _("ttf/DejaVuSans-Bold.ttf")
96 #define DT 0.01111111f
98 /*---------------------------------------------------------------------------*/
100 const char *config_data(const char *);
101 const char *config_user(const char *);
103 int config_data_path(const char *, const char *);
104 int config_user_path(const char *);
106 /*---------------------------------------------------------------------------*/