|
|
1.1 root 1: /*
2: Hatari - configuration.h
3:
4: This file is distributed under the GNU Public License, version 2 or at
5: your option any later version. Read the file gpl.txt for details.
6: */
7:
8: #ifndef HATARI_CONFIGURATION_H
9: #define HATARI_CONFIGURATION_H
10:
11:
12: /* Sound configuration */
13: typedef enum
14: {
15: PLAYBACK_LOW,
16: PLAYBACK_MEDIUM,
17: PLAYBACK_HIGH
18: } SOUND_QUALITIY;
19:
20: typedef struct
21: {
22: BOOL bEnableSound;
23: } CNF_SOUND;
24:
25:
26: /* Dialog Keyboard */
27: typedef enum
28: {
29: KEYMAP_SYMBOLIC, /* Use keymapping with symbolic (ASCII) key codes */
30: KEYMAP_SCANCODE, /* Use keymapping with PC keyboard scancodes */
31: KEYMAP_LOADED /* Use keymapping with a map configuration file */
32: } KEYMAPTYPE;
33:
34: typedef struct
35: {
36: BOOL bDisableKeyRepeat;
37: KEYMAPTYPE nKeymapType;
38: char szMappingFileName[MAX_FILENAME_LENGTH];
39: } CNF_KEYBOARD;
40:
41:
42:
43: /* Hard discs configuration */
44: #define DRIVELIST_TO_DRIVE_INDEX(DriveList) (DriveList+1)
45:
46: typedef enum
47: {
48: DRIVELIST_NONE,
49: DRIVELIST_C,
50: DRIVELIST_CD,
51: DRIVELIST_CDE,
52: DRIVELIST_CDEF
53: } DRIVELIST;
54:
55: typedef enum
56: {
57: DRIVE_C,
58: DRIVE_D,
59: DRIVE_E,
60: DRIVE_F
61: } DRIVELETTER;
62:
63: /* Screen configuration */
64: typedef struct
65: {
66: BOOL bFullScreen;
67: BOOL bDoubleSizeWindow;
68: int ChosenDisplayMode;
69: BOOL bCaptureChange;
70: int nFramesPerSecond;
71: } CNF_SCREEN;
72:
73:
74:
75: /* Dialog System */
76: typedef enum
77: {
78: MINMAXSPEED_MIN,
79: MINMAXSPEED_1,
80: MINMAXSPEED_2,
81: MINMAXSPEED_3,
82: MINMAXSPEED_MAX
83: } MINMAXSPEED_TYPE;
84:
85: typedef struct
86: {
87: int nCpuLevel;
88: BOOL bCompatibleCpu;
89: BOOL bAddressSpace24;
90: MINMAXSPEED_TYPE nMinMaxSpeed;
91: } CNF_SYSTEM;
92:
93:
94: /* State of system is stored in this structure */
95: /* On reset, variables are copied into system globals and used. */
96: typedef struct
97: {
98: /* Configure */
99: CNF_SCREEN Screen;
100: CNF_KEYBOARD Keyboard;
101: CNF_SOUND Sound;
102: CNF_SYSTEM System;
103: } CNF_PARAMS;
104:
105:
106: extern BOOL bFirstTimeInstall;
107: extern CNF_PARAMS ConfigureParams;
108:
109: extern void Configuration_SetDefault(void);
110:
111: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.