1 |
|
/* |
2 |
|
* prefs.cpp - Preferences handling |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
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 |
36 |
|
{"disk", TYPE_STRING, true}, // Device/file names of Mac volumes (disk.cpp) |
37 |
|
{"floppy", TYPE_STRING, true}, // Device/file names of Mac floppy drives (sony.cpp) |
38 |
|
{"cdrom", TYPE_STRING, true}, // Device/file names of Mac CD-ROM drives (cdrom.cpp) |
39 |
+ |
{"extfs", TYPE_STRING, false}, // Root path of ExtFS (extfs.cpp) |
40 |
|
{"scsi0", TYPE_STRING, false}, // SCSI targets for Mac SCSI ID 0..6 (scsi_*.cpp) |
41 |
|
{"scsi1", TYPE_STRING, false}, |
42 |
|
{"scsi2", TYPE_STRING, false}, |
49 |
|
{"serialb", TYPE_STRING, false}, // Device name of Mac serial port B (serial_*.cpp) |
50 |
|
{"ether", TYPE_STRING, false}, // Device name of Mac ethernet adapter (ether_*.cpp) |
51 |
|
{"rom", TYPE_STRING, false}, // Path of ROM file (main_*.cpp) |
52 |
< |
{"bootdrive", TYPE_INT16, false}, // Boot drive number (main_*.cpp) |
53 |
< |
{"bootdriver", TYPE_INT16, false}, // Boot driver number (main_*.cpp) |
52 |
> |
{"bootdrive", TYPE_INT16, false}, // Boot drive number (main.cpp) |
53 |
> |
{"bootdriver", TYPE_INT16, false}, // Boot driver number (main.cpp) |
54 |
|
{"ramsize", TYPE_INT32, false}, // Size of Mac RAM in bytes (main_*.cpp) |
55 |
|
{"frameskip", TYPE_INT32, false}, // Number of frames to skip in refreshed video modes (video_*.cpp) |
56 |
|
{"modelid", TYPE_INT32, false}, // Mac Model ID (Gestalt Model ID minus 6) (rom_patches.cpp) |
57 |
< |
{"fpu", TYPE_BOOLEAN, false}, // Enable FPU emulation (main_*.cpp) |
57 |
> |
{"cpu", TYPE_INT32, false}, // CPU type (0 = 68000, 1 = 68010 etc.) (main.cpp) |
58 |
> |
{"fpu", TYPE_BOOLEAN, false}, // Enable FPU emulation (main.cpp) |
59 |
|
{"nocdrom", TYPE_BOOLEAN, false}, // Don't install CD-ROM driver (cdrom.cpp/rom_patches.cpp) |
60 |
|
{"nosound", TYPE_BOOLEAN, false}, // Don't enable sound output (audio_*.cpp) |
61 |
|
{"nogui", TYPE_BOOLEAN, false}, // Disable GUI (main_*.cpp) |
91 |
|
PrefsAddInt32("ramsize", 8 * 1024 * 1024); |
92 |
|
PrefsAddInt32("frameskip", 6); |
93 |
|
PrefsAddInt32("modelid", 5); // Mac IIci |
94 |
+ |
PrefsAddInt32("cpu", 3); // 68030 |
95 |
|
PrefsAddBool("fpu", false); |
96 |
|
PrefsAddBool("nocdrom", false); |
97 |
|
PrefsAddBool("nosound", false); |
333 |
|
|
334 |
|
// Skip whitespace until value |
335 |
|
while (isspace(*p)) p++; |
333 |
– |
if (*p == 0) |
334 |
– |
continue; |
336 |
|
char *keyword = line; |
337 |
|
char *value = p; |
338 |
|
int32 i = atol(value); |