~ubuntu-branches/ubuntu/vivid/basilisk2/vivid

« back to all changes in this revision

Viewing changes to src/prefs.cpp

  • Committer: Package Import Robot
  • Author(s): Jonas Smedegaard, Jonas Smedegaard, Jérémy Lal, Giulio Paci
  • Date: 2012-05-19 02:08:30 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120519020830-o59ui1wsfftg55m6
Tags: 0.9.20120331-1
* Upstream update

[ Jonas Smedegaard ]
* Drop local CDBS snippets: All included in main cdbs now.
* Use source format 3.0 (quilt), and stop including patchsys-quilt.mk.
  Stop build-depending on quilt, patchutils.
* Add full licensing header to debian/rules, and update copyright
  years.
* Add README.source (and drop outdated README.cdbs-tweaks).
* Refresh patches with shortening quilt options --no-index
  --no-timestamps -pab, and fix their path prefix.
* Rewrite copyright file using draft DEP-5 format.
* Update control file Vcs-* fields: Packaging moved to Git.
* Ease building with git-buildpackage:
  + Add gbp.conf, enabling pristine-tar and tag signing.
  + Git-ignore quilt .pc dir.
* Bump debhelper compat level to 7.
* Update Vcs-Browser field to use anonscm.debian.org.
* Add Giulio Paci and Jérémy Lal as uploaders, and permit Debian
  Maintainers to upload.

[ Jérémy Lal ]
* Drop patch 1002 to fix capitalized flag: corrected upstream.

[ Giulio Paci ]
* Restart package development.
  Closes: #662175.
* Add patches to fix compilation and documentation.
* Provide JIT flavor on supported architectures (i386 and amd64).
* Bump standards-version to 3.9.3.
* Update copyright file:
  + Adjust licenses now clarified/improved upstream.
* Update ChangeLog.cvs.
* Enable CDBS autogeneration of autotools files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  prefs.cpp - Preferences handling
3
3
 *
4
 
 *  Basilisk II (C) 1997-2005 Christian Bauer
 
4
 *  Basilisk II (C) 1997-2008 Christian Bauer
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
47
47
 *  Initialize preferences
48
48
 */
49
49
 
50
 
void PrefsInit(int &argc, char **&argv)
 
50
void PrefsInit(const char *vmdir, int &argc, char **&argv)
51
51
{
52
52
        // Set defaults
53
53
        AddPrefsDefaults();
54
54
        AddPlatformPrefsDefaults();
55
55
 
56
56
        // Load preferences from settings file
57
 
        LoadPrefs();
 
57
        LoadPrefs(vmdir);
58
58
 
59
59
        // Override prefs with command line options
60
60
        for (int i=1; i<argc; i++) {
61
61
 
62
62
                // Options are of the form '--keyword'
63
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
65
                        continue;
66
66
                const char *keyword = option + 2;
67
67
 
121
121
                        argc -= k;
122
122
                }
123
123
        }
 
124
 
 
125
#ifdef SHEEPSHAVER
 
126
        // System specific initialization
 
127
        prefs_init();
 
128
#endif
124
129
}
125
130
 
126
131
 
130
135
 
131
136
void PrefsExit(void)
132
137
{
 
138
#ifdef SHEEPSHAVER
 
139
        // System specific deinitialization
 
140
        prefs_exit();
 
141
#endif
 
142
 
133
143
        // Free prefs list
134
144
        prefs_node *p = the_prefs, *next;
135
145
        while (p) {