ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/prefs_items.cpp
Revision: 1.1
Committed: 2000-07-25T15:19:40Z (24 years, 4 months ago) by cebix
Branch: MAIN
Log Message:
- more cleanups
- splitted prefs.cpp into prefs.cpp and prefs_items.cpp to make prefs.cpp
  reusable for other projects

File Contents

# User Rev Content
1 cebix 1.1 /*
2     * prefs_items.cpp - Common preferences items
3     *
4     * Basilisk II (C) 1997-2000 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 "prefs.h"
22    
23    
24     // Common preferences items (those which exist on all platforms)
25     // Except for "disk", "floppy", "cdrom", "scsiX", "screen", "rom" and "ether",
26     // these are guaranteed to be in the prefs; "disk", "floppy" and "cdrom" can
27     // occur multiple times
28     prefs_desc common_prefs_items[] = {
29     {"disk", TYPE_STRING, true}, // Device/file names of Mac volumes (disk.cpp)
30     {"floppy", TYPE_STRING, true}, // Device/file names of Mac floppy drives (sony.cpp)
31     {"cdrom", TYPE_STRING, true}, // Device/file names of Mac CD-ROM drives (cdrom.cpp)
32     {"extfs", TYPE_STRING, false}, // Root path of ExtFS (extfs.cpp)
33     {"scsi0", TYPE_STRING, false}, // SCSI targets for Mac SCSI ID 0..6 (scsi_*.cpp)
34     {"scsi1", TYPE_STRING, false},
35     {"scsi2", TYPE_STRING, false},
36     {"scsi3", TYPE_STRING, false},
37     {"scsi4", TYPE_STRING, false},
38     {"scsi5", TYPE_STRING, false},
39     {"scsi6", TYPE_STRING, false},
40     {"screen", TYPE_STRING, false}, // Video mode (video.cpp)
41     {"seriala", TYPE_STRING, false}, // Device name of Mac serial port A (serial_*.cpp)
42     {"serialb", TYPE_STRING, false}, // Device name of Mac serial port B (serial_*.cpp)
43     {"ether", TYPE_STRING, false}, // Device name of Mac ethernet adapter (ether_*.cpp)
44     {"rom", TYPE_STRING, false}, // Path of ROM file (main_*.cpp)
45     {"bootdrive", TYPE_INT16, false}, // Boot drive number (main.cpp)
46     {"bootdriver", TYPE_INT16, false}, // Boot driver number (main.cpp)
47     {"ramsize", TYPE_INT32, false}, // Size of Mac RAM in bytes (main_*.cpp)
48     {"frameskip", TYPE_INT32, false}, // Number of frames to skip in refreshed video modes (video_*.cpp)
49     {"modelid", TYPE_INT32, false}, // Mac Model ID (Gestalt Model ID minus 6) (rom_patches.cpp)
50     {"cpu", TYPE_INT32, false}, // CPU type (0 = 68000, 1 = 68010 etc.) (main.cpp)
51     {"fpu", TYPE_BOOLEAN, false}, // Enable FPU emulation (main.cpp)
52     {"nocdrom", TYPE_BOOLEAN, false}, // Don't install CD-ROM driver (cdrom.cpp/rom_patches.cpp)
53     {"nosound", TYPE_BOOLEAN, false}, // Don't enable sound output (audio_*.cpp)
54     {"noclipconversion", TYPE_BOOLEAN, false}, // Don't convert clipboard contents (clip_*.cpp)
55     {"nogui", TYPE_BOOLEAN, false}, // Disable GUI (main_*.cpp)
56     {NULL, TYPE_END, false} // End of list
57     };
58    
59    
60     /*
61     * Set default values for preferences items
62     */
63    
64     void AddPrefsDefaults(void)
65     {
66     SysAddSerialPrefs();
67     PrefsAddInt16("bootdriver", 0);
68     PrefsAddInt16("bootdrive", 0);
69     PrefsAddInt32("ramsize", 8 * 1024 * 1024);
70     PrefsAddInt32("frameskip", 6);
71     PrefsAddInt32("modelid", 5); // Mac IIci
72     PrefsAddInt32("cpu", 3); // 68030
73     PrefsAddBool("fpu", false);
74     PrefsAddBool("nocdrom", false);
75     PrefsAddBool("nosound", false);
76     PrefsAddBool("noclipconversion", false);
77     PrefsAddBool("nogui", false);
78     }