Annotation of frontvm/hardware/configuration.c, revision 1.1.1.1

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 "video.h"
                     17: #include "screen.h"
                     18: #include "shortcut.h"
                     19: #include "memAlloc.h"
                     20: #include "file.h"
                     21: #include "../cpu/hatari-glue.h"
                     22: 
                     23: 
                     24: BOOL bFirstTimeInstall = FALSE;             /* Has been run before? Used to set default joysticks etc... */
                     25: CNF_PARAMS ConfigureParams;                 /* List of configuration for the emulator */
                     26: 
                     27: 
                     28: /*-----------------------------------------------------------------------*/
                     29: /*
                     30:   Set default configuration values.
                     31: */
                     32: void Configuration_SetDefault(void)
                     33: {
                     34:   /* Clear parameters */
                     35:   Memory_Clear(&ConfigureParams, sizeof(CNF_PARAMS));
                     36: 
                     37:   /* Set defaults for Keyboard */
                     38:   ConfigureParams.Keyboard.bDisableKeyRepeat = TRUE;
                     39:   ConfigureParams.Keyboard.nKeymapType = KEYMAP_SYMBOLIC;
                     40:   strcpy(ConfigureParams.Keyboard.szMappingFileName, "");
                     41: 
                     42:   /* Set defaults for Screen */
                     43:   ConfigureParams.Screen.bFullScreen = FALSE;
                     44:   ConfigureParams.Screen.bDoubleSizeWindow = TRUE;
                     45:   ConfigureParams.Screen.ChosenDisplayMode = DISPLAYMODE_HICOL_2X;
                     46:   ConfigureParams.Screen.bCaptureChange = FALSE;
                     47:   ConfigureParams.Screen.nFramesPerSecond = 1;
                     48: 
                     49:   /* Set defaults for Sound */
                     50:   ConfigureParams.Sound.bEnableSound = TRUE;
                     51: 
                     52:   /* Set defaults for System */
                     53:   ConfigureParams.System.nCpuLevel = 0;
                     54:   ConfigureParams.System.bCompatibleCpu = FALSE;
                     55:   ConfigureParams.System.bAddressSpace24 = TRUE;
                     56:   ConfigureParams.System.nMinMaxSpeed = MINMAXSPEED_MIN;
                     57: 
                     58: }
                     59: 
                     60: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.