ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/prefs_items.cpp
Revision: 1.5
Committed: 2001-04-01T12:11:42Z (23 years, 2 months ago) by cebix
Branch: MAIN
CVS Tags: snapshot-29052001, release-0_9-1
Changes since 1.4: +28 -28 lines
Log Message:
- added help for command line options
- PrefsInit() removes all processed options

File Contents

# Content
1 /*
2 * prefs_items.cpp - Common preferences items
3 *
4 * Basilisk II (C) 1997-2001 Christian Bauer
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #include "sysdeps.h"
22
23 #include "sys.h"
24 #include "prefs.h"
25
26
27 // Common preferences items (those which exist on all platforms)
28 // Except for "disk", "floppy", "cdrom", "scsiX", "screen", "rom" and "ether",
29 // these are guaranteed to be in the prefs.
30 prefs_desc common_prefs_items[] = {
31 {"disk", TYPE_STRING, true, "device/file name of Mac volume"},
32 {"floppy", TYPE_STRING, true, "device/file name of Mac floppy drive"},
33 {"cdrom", TYPE_STRING, true, "device/file names of Mac CD-ROM drive"},
34 {"extfs", TYPE_STRING, false, "root path of ExtFS"},
35 {"scsi0", TYPE_STRING, false, "SCSI target for Mac SCSI ID 0"},
36 {"scsi1", TYPE_STRING, false, "SCSI target for Mac SCSI ID 1"},
37 {"scsi2", TYPE_STRING, false, "SCSI target for Mac SCSI ID 2"},
38 {"scsi3", TYPE_STRING, false, "SCSI target for Mac SCSI ID 3"},
39 {"scsi4", TYPE_STRING, false, "SCSI target for Mac SCSI ID 4"},
40 {"scsi5", TYPE_STRING, false, "SCSI target for Mac SCSI ID 5"},
41 {"scsi6", TYPE_STRING, false, "SCSI target for Mac SCSI ID 6"},
42 {"screen", TYPE_STRING, false, "video mode"},
43 {"seriala", TYPE_STRING, false, "device name of Mac serial port A"},
44 {"serialb", TYPE_STRING, false, "device name of Mac serial port B"},
45 {"ether", TYPE_STRING, false, "device name of Mac ethernet adapter"},
46 {"rom", TYPE_STRING, false, "path of ROM file"},
47 {"bootdrive", TYPE_INT32, false, "boot drive number"},
48 {"bootdriver", TYPE_INT32, false, "boot driver number"},
49 {"ramsize", TYPE_INT32, false, "size of Mac RAM in bytes"},
50 {"frameskip", TYPE_INT32, false, "number of frames to skip in refreshed video modes"},
51 {"modelid", TYPE_INT32, false, "Mac Model ID (Gestalt Model ID minus 6)"},
52 {"cpu", TYPE_INT32, false, "CPU type (0 = 68000, 1 = 68010 etc.)"},
53 {"fpu", TYPE_BOOLEAN, false, "enable FPU emulation"},
54 {"nocdrom", TYPE_BOOLEAN, false, "don't install CD-ROM driver"},
55 {"nosound", TYPE_BOOLEAN, false, "don't enable sound output"},
56 {"noclipconversion", TYPE_BOOLEAN, false, "don't convert clipboard contents"},
57 {"nogui", TYPE_BOOLEAN, false, "disable GUI"},
58 {NULL, TYPE_END, false, NULL} // End of list
59 };
60
61
62 /*
63 * Set default values for preferences items
64 */
65
66 void AddPrefsDefaults(void)
67 {
68 SysAddSerialPrefs();
69 PrefsAddInt32("bootdriver", 0);
70 PrefsAddInt32("bootdrive", 0);
71 PrefsAddInt32("ramsize", 8 * 1024 * 1024);
72 PrefsAddInt32("frameskip", 6);
73 PrefsAddInt32("modelid", 5); // Mac IIci
74 PrefsAddInt32("cpu", 3); // 68030
75 PrefsAddBool("fpu", false);
76 PrefsAddBool("nocdrom", false);
77 PrefsAddBool("nosound", false);
78 PrefsAddBool("noclipconversion", false);
79 PrefsAddBool("nogui", false);
80 }