|
|
1.1 root 1: /*
2: Hatari - configuration.c
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: Configuration File
8:
9: The configuration file is now stored in an ASCII format to allow the user
10: to edit the file manually.
11: */
12:
13: #include "main.h"
14: #include "configuration.h"
15: #include "dialog.h"
16: #include "screen.h"
17: #include "shortcut.h"
18: #include "memAlloc.h"
19: #include "file.h"
20:
21:
22: BOOL bFirstTimeInstall = FALSE; /* Has been run before? Used to set default joysticks etc... */
23: CNF_PARAMS ConfigureParams; /* List of configuration for the emulator */
24:
25:
26: /*-----------------------------------------------------------------------*/
27: /*
28: Set default configuration values.
29: */
30: void Configuration_SetDefault(void)
31: {
32: /* Clear parameters */
33: Memory_Clear(&ConfigureParams, sizeof(CNF_PARAMS));
34:
35: /* Set defaults for Keyboard */
36: ConfigureParams.Keyboard.bDisableKeyRepeat = TRUE;
37: ConfigureParams.Keyboard.nKeymapType = KEYMAP_SYMBOLIC;
38: strcpy(ConfigureParams.Keyboard.szMappingFileName, "");
39:
40: /* Set defaults for Screen */
41: ConfigureParams.Screen.bFullScreen = FALSE;
42: ConfigureParams.Screen.ChosenDisplayMode = DISPLAYMODE_HICOL_2X;
43: ConfigureParams.Screen.bCaptureChange = FALSE;
44: ConfigureParams.Screen.nFramesPerSecond = 1;
45:
46: /* Set defaults for Sound */
47: ConfigureParams.Sound.bEnableSound = TRUE;
48:
49: /* Set defaults for System */
50: ConfigureParams.System.nCpuLevel = 0;
51: ConfigureParams.System.bCompatibleCpu = FALSE;
52: ConfigureParams.System.bAddressSpace24 = TRUE;
53: ConfigureParams.System.nMinMaxSpeed = MINMAXSPEED_MIN;
54:
55: }
56:
57:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.