1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
/*
* This program 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*
* Eventually this should include all configuration stuff,
* for now there's few options which indicate 3do/pc flavors.
*/
#ifndef OPTIONS_H
#define OPTIONS_H
#include "port.h"
#include "libs/compiler.h"
#include "libs/uio.h"
#if defined(__cplusplus)
extern "C" {
#endif
#define OPT_3DO 0x01
#define OPT_PC 0x02
#define OPT_ALL 0xFF
extern int optWhichCoarseScan;
extern int optWhichMenu;
extern int optWhichFonts;
extern int optWhichIntro;
extern int optWhichShield;
extern int optSmoothScroll;
extern int optMeleeScale;
extern BOOLEAN opt3doMusic;
extern BOOLEAN optRemixMusic;
extern BOOLEAN optSpeech;
extern BOOLEAN optSubtitles;
extern BOOLEAN optStereoSFX;
extern BOOLEAN optKeepAspectRatio;
#define GAMMA_SCALE 1000
extern float optGamma;
extern uio_DirHandle *contentDir;
extern uio_DirHandle *configDir;
extern uio_DirHandle *saveDir;
extern uio_DirHandle *meleeDir;
extern char baseContentPath[PATH_MAX];
extern const char **optAddons;
/* These get edited by TEXTENTRY widgets, so they should have room to
* hold as much as one of them allows by default. */
typedef struct _input_template {
char name[30];
/* This should eventually also hold things like Joystick Port
* and whether or not joysticks are enabled at all, and
* possibly the whole configuration scheme. If we do that, we
* can actually ditch much of VControl. */
} INPUT_TEMPLATE;
extern INPUT_TEMPLATE input_templates[6];
void prepareContentDir (const char *contentDirName, const char *addonDirName, const char *execFile);
void prepareConfigDir (const char *configDirName);
void prepareMeleeDir (void);
void prepareSaveDir (void);
void prepareAddons (const char **addons);
void prepareShadowAddons (const char **addons);
void unprepareAllDirs (void);
BOOLEAN loadAddon (const char *addon);
int loadIndices (uio_DirHandle *baseDir);
bool setGammaCorrection (float gamma);
#if defined(__cplusplus)
}
#endif
#endif
|