/[adonthell]/adonthell-0.3/src/prefs.cc
ViewVC logotype

Diff of /adonthell-0.3/src/prefs.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.34 by ksterker, Mon May 5 18:52:48 2003 UTC revision 1.35 by ksterker, Mon Oct 25 06:55:01 2004 UTC
# Line 39  config::config () Line 39  config::config ()
39  #else  #else
40      screen_mode = 0;                // Fullscreen      screen_mode = 0;                // Fullscreen
41  #endif  #endif
42  #if defined (QTOPIA) || defined (WIN32)  #if defined (QTOPIA)
43      double_screen = 0;              // Double screen      double_screen = 0;              // Double screen
44  #else  #else
45      double_screen = 1;              // Double screen      double_screen = 1;              // Double screen
# Line 50  config::config () Line 50  config::config ()
50      audio_sample_rate = 2;          // 11025, 22050 or 44100 Hz      audio_sample_rate = 2;          // 11025, 22050 or 44100 Hz
51      audio_volume = 100;             // 0 - 100%      audio_volume = 100;             // 0 - 100%
52      language = "";                  // Let the user's environment decide      language = "";                  // Let the user's environment decide
53        font = "";                                          // use default font
54    
55      // set the path to the adonthellrc file:      // set the path to the adonthellrc file:
56  #ifndef SINGLE_DIR_INST  #ifndef SINGLE_DIR_INST
# Line 271  void config::write_adonthellrc () Line 272  void config::write_adonthellrc ()
272         << "\n\n" << "# Double-size num\n#   0  320x240 mode\n"         << "\n\n" << "# Double-size num\n#   0  320x240 mode\n"
273         << "#   1  640x480 (double) mode\n    Double-size "         << "#   1  640x480 (double) mode\n    Double-size "
274         << (int) double_screen << "\n\n"         << (int) double_screen << "\n\n"
275         << "# Language [locale]\n# Where locale has the form fr_FR or de_DE, etc.\n    Language [" << language << "]\n\n"         << "# Language [locale]\n#   Where locale has the form fr_FR or de_DE, etc.\n"
276           << "    Language [" << language << "]\n\n"
277           << "# Font [font.ttf]\n#   Path to a true type font to use. Leave empty for default\n"
278           << "    Font [" << font << "]\n\n"
279         << "# Quick-load num\n#   0  off\n#   1  on\n    Quick-load "         << "# Quick-load num\n#   0  off\n#   1  on\n    Quick-load "
280         << (int) quick_load << "\n\n"         << (int) quick_load << "\n\n"
281         << "# Audio-channels num\n#   0  Mono\n#   1  Stereo\n"         << "# Audio-channels num\n#   0  Mono\n#   1  Stereo\n"
# Line 333  bool config::read_adonthellrc () Line 337  bool config::read_adonthellrc ()
337                  if (parse_adonthellrc (n, s) == PREFS_STR) language = s;                  if (parse_adonthellrc (n, s) == PREFS_STR) language = s;
338                  break;                  break;
339              }              }
340                                case PREFS_FONT:
341                {
342                    if (parse_adonthellrc (n, s) == PREFS_NUM) font = s;
343                    break;
344                }
345              case PREFS_SCREEN_MODE:              case PREFS_SCREEN_MODE:
346              {              {
347                  if (parse_adonthellrc (n, s) == PREFS_NUM) screen_mode = n;                  if (parse_adonthellrc (n, s) == PREFS_NUM) screen_mode = n;
# Line 395  bool config::read_adonthellrc () Line 403  bool config::read_adonthellrc ()
403      // compare version of config file and engine      // compare version of config file and engine
404      if (major < MAJOR ||      if (major < MAJOR ||
405          (major == MAJOR && minor < MINOR) ||          (major == MAJOR && minor < MINOR) ||
406          (major == MAJOR && minor < MINOR && micro < MICRO) ||          (major == MAJOR && minor == MINOR && micro < MICRO) ||
407          strcmp (suffix, SUFFIX) != 0)          strcmp (suffix, SUFFIX) != 0)
408      {      {
409          // update config file if engine is newer          // update config file if engine is newer

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26