Remove trailing whitespace from source code.
[neverball] / share / base_config.h
1 /*
2  * Copyright (C) 2003 Robert Kooima
3  *
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.
8  *
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.
13  */
14
15 #ifndef BASE_CONFIG_H
16 #define BASE_CONFIG_H
17
18 /*
19  * This file contains some constants
20  * And the way to access to directories
21  */
22
23 #include <stdio.h>
24 #include "i18n.h"
25
26 /*---------------------------------------------------------------------------*/
27
28 #define VERSION       "1.4.1svn"      /* Game version */
29
30 #define CONFIG_DATA   "./data"        /* Game data directory */
31 #define CONFIG_LOCALE "./locale"      /* Game localisation */
32 #define CONFIG_USER   ".neverball-dev"    /* User config directory */
33
34 /*
35  * Global settings are stored in USER_CONFIG_FILE.  Replays are stored
36  * in  USER_REPLAY_FILE.  These files  are placed  in the  user's home
37  * directory as given by the HOME environment var.  If the config file
38  * is deleted, it will be recreated using the defaults.
39  */
40 #define USER_CONFIG_FILE "neverballrc"
41 #define USER_REPLAY_FILE _("Last")
42 #define REPLAY_EXT ".nbr"
43 #define ALLOW_CHEAT      1
44
45 /*---------------------------------------------------------------------------*/
46
47 #if SDL_BYTEORDER == SDL_BIG_ENDIAN
48 #define RMASK 0xFF000000
49 #define GMASK 0x00FF0000
50 #define BMASK 0x0000FF00
51 #define AMASK 0x000000FF
52 #else
53 #define RMASK 0x000000FF
54 #define GMASK 0x0000FF00
55 #define BMASK 0x00FF0000
56 #define AMASK 0xFF000000
57 #endif
58
59 #ifdef _WIN32
60 #define FMODE_RB "rb"
61 #define FMODE_WB "wb"
62 #else
63 #define FMODE_RB "r"
64 #define FMODE_WB "w"
65 #endif
66
67 #define AUDIO_BUFF_HI 2048
68 #define AUDIO_BUFF_LO 1024
69
70 #define JOY_MAX 32767
71 #define JOY_MID 16383
72
73 #define MAXSTR 256
74 #define PATHMAX 64
75 #define MAXNAM 9
76
77 #define GUI_FACE                    _("ttf/DejaVuSans-Bold.ttf")
78
79 /*---------------------------------------------------------------------------*/
80
81 const char *config_data(const char *);
82 const char *config_user(const char *);
83
84 int  config_data_path(const char *, const char *);
85 int  config_user_path(const char *);
86
87 /*---------------------------------------------------------------------------*/
88
89 #endif