ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/prefs.cpp
(Generate patch)

Comparing BasiliskII/src/prefs.cpp (file contents):
Revision 1.17 by gbeauche, 2008-01-01T09:40:31Z vs.
Revision 1.18 by asvitkine, 2009-07-23T19:19:14Z

# Line 47 | Line 47 | static const prefs_desc *find_prefs_desc
47   *  Initialize preferences
48   */
49  
50 < void PrefsInit(int &argc, char **&argv)
50 > void PrefsInit(const char *vmdir, int &argc, char **&argv)
51   {
52          // Set defaults
53          AddPrefsDefaults();
54          AddPlatformPrefsDefaults();
55  
56          // Load preferences from settings file
57 <        LoadPrefs();
57 >        LoadPrefs(vmdir);
58  
59          // Override prefs with command line options
60          for (int i=1; i<argc; i++) {
61  
62                  // Options are of the form '--keyword'
63                  const char *option = argv[i];
64 <                if (strlen(option) < 3 || option[0] != '-' || option[1] != '-')
64 >                if (!option || strlen(option) < 3 || option[0] != '-' || option[1] != '-')
65                          continue;
66                  const char *keyword = option + 2;
67  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines