Logo Search packages:      
Sourcecode: adonthell version File versions  Download package

config::config (  ) 

Constructor. Initializes all configuration options with default values.

  • Language: English
  • Screen mode: windowed
  • Quick load: enabled
  • Audio: High quality (44.1kHz, 16 bit, stereo)
  • Volume: 100%
  • Config file: $HOME/.adonthell/adonthellrc

Definition at line 34 of file prefs.cc.

References audio_channels, audio_resolution, audio_sample_rate, audio_volume, language, quick_load, and screen_mode.

{
    // set some default values where possible
#if defined (WIN32) || defined (__APPLE__)
    screen_mode = 1;                // Fullscreen
#else
    screen_mode = 0;                // Fullscreen
#endif
#if defined (QTOPIA)
    double_screen = 0;              // Double screen
#else
    double_screen = 1;              // Double screen
#endif
    quick_load = 0;                 // Quick-load disabled
    audio_channels = 1;             // Stereo
    audio_resolution = 1;           // 16 bit
    audio_sample_rate = 2;          // 11025, 22050 or 44100 Hz
    audio_volume = 100;             // 0 - 100%
    language = "";                  // Let the user's environment decide
    font = "";                                  // use default font

    // set the path to the adonthellrc file:
#ifndef SINGLE_DIR_INST
    adonthellrc = string (getenv ("HOME")) + "/.adonthell";
#else
    adonthellrc = string (".");
#endif
}


Generated by  Doxygen 1.6.0   Back to index