2002-02-04 16:58:13 +00:00
|
|
|
/*
|
|
|
|
* prefs_items.cpp - Common preferences items
|
|
|
|
*
|
2008-01-01 09:47:39 +00:00
|
|
|
* SheepShaver (C) 1997-2008 Christian Bauer and Marc Hellwig
|
2002-02-04 16:58:13 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "sysdeps.h"
|
|
|
|
|
|
|
|
#include "sys.h"
|
|
|
|
#include "prefs.h"
|
|
|
|
|
|
|
|
|
|
|
|
// Common preferences items (those which exist on all platforms)
|
|
|
|
prefs_desc common_prefs_items[] = {
|
|
|
|
{"disk", TYPE_STRING, true, "device/file name of Mac volume"},
|
|
|
|
{"floppy", TYPE_STRING, true, "device/file name of Mac floppy drive"},
|
|
|
|
{"cdrom", TYPE_STRING, true, "device/file names of Mac CD-ROM drive"},
|
|
|
|
{"extfs", TYPE_STRING, false, "root path of ExtFS"},
|
|
|
|
{"scsi0", TYPE_STRING, false, "SCSI target for Mac SCSI ID 0"},
|
|
|
|
{"scsi1", TYPE_STRING, false, "SCSI target for Mac SCSI ID 1"},
|
|
|
|
{"scsi2", TYPE_STRING, false, "SCSI target for Mac SCSI ID 2"},
|
|
|
|
{"scsi3", TYPE_STRING, false, "SCSI target for Mac SCSI ID 3"},
|
|
|
|
{"scsi4", TYPE_STRING, false, "SCSI target for Mac SCSI ID 4"},
|
|
|
|
{"scsi5", TYPE_STRING, false, "SCSI target for Mac SCSI ID 5"},
|
|
|
|
{"scsi6", TYPE_STRING, false, "SCSI target for Mac SCSI ID 6"},
|
2005-03-27 22:08:33 +00:00
|
|
|
{"screen", TYPE_STRING, false, "video mode"},
|
2002-02-04 16:58:13 +00:00
|
|
|
{"windowmodes", TYPE_INT32, false, "bitmap of allowed window video modes"},
|
|
|
|
{"screenmodes", TYPE_INT32, false, "bitmap of allowed fullscreen video modes"},
|
|
|
|
{"seriala", TYPE_STRING, false, "device name of Mac serial port A"},
|
|
|
|
{"serialb", TYPE_STRING, false, "device name of Mac serial port B"},
|
|
|
|
{"rom", TYPE_STRING, false, "path of ROM file"},
|
|
|
|
{"bootdrive", TYPE_INT32, false, "boot drive number"},
|
|
|
|
{"bootdriver", TYPE_INT32, false, "boot driver number"},
|
|
|
|
{"ramsize", TYPE_INT32, false, "size of Mac RAM in bytes"},
|
|
|
|
{"frameskip", TYPE_INT32, false, "number of frames to skip in refreshed video modes"},
|
|
|
|
{"gfxaccel", TYPE_BOOLEAN, false, "turn on QuickDraw acceleration"},
|
|
|
|
{"nocdrom", TYPE_BOOLEAN, false, "don't install CD-ROM driver"},
|
|
|
|
{"nonet", TYPE_BOOLEAN, false, "don't use Ethernet"},
|
|
|
|
{"nosound", TYPE_BOOLEAN, false, "don't enable sound output"},
|
|
|
|
{"nogui", TYPE_BOOLEAN, false, "disable GUI"},
|
2003-12-31 11:37:26 +00:00
|
|
|
{"noclipconversion", TYPE_BOOLEAN, false, "don't convert clipboard contents"},
|
2002-02-04 16:58:13 +00:00
|
|
|
{"ignoresegv", TYPE_BOOLEAN, false, "ignore illegal memory accesses"},
|
2009-07-20 18:50:28 +00:00
|
|
|
{"ignoreillegal", TYPE_BOOLEAN, false, "ignore illegal instructions"},
|
2003-12-03 10:52:50 +00:00
|
|
|
{"jit", TYPE_BOOLEAN, false, "enable JIT compiler"},
|
2004-06-03 21:52:55 +00:00
|
|
|
{"jit68k", TYPE_BOOLEAN, false, "enable 68k DR emulator"},
|
2004-01-06 15:03:16 +00:00
|
|
|
{"keyboardtype", TYPE_INT32, false, "hardware keyboard type"},
|
2002-02-04 16:58:13 +00:00
|
|
|
{NULL, TYPE_END, false, NULL} // End of list
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Set default values for preferences items
|
|
|
|
*/
|
|
|
|
|
|
|
|
void AddPrefsDefaults(void)
|
|
|
|
{
|
2007-01-24 03:36:48 +00:00
|
|
|
#ifndef PREFS_EDITOR
|
2002-02-04 16:58:13 +00:00
|
|
|
SysAddSerialPrefs();
|
2007-01-24 03:36:48 +00:00
|
|
|
#endif
|
2002-02-04 16:58:13 +00:00
|
|
|
PrefsAddInt32("bootdriver", 0);
|
|
|
|
PrefsAddInt32("bootdrive", 0);
|
|
|
|
PrefsAddInt32("ramsize", 16 * 1024 * 1024);
|
|
|
|
PrefsAddInt32("frameskip", 8);
|
|
|
|
PrefsAddBool("gfxaccel", true);
|
|
|
|
PrefsAddBool("nocdrom", false);
|
|
|
|
PrefsAddBool("nonet", false);
|
|
|
|
PrefsAddBool("nosound", false);
|
|
|
|
PrefsAddBool("nogui", false);
|
2003-12-31 11:37:26 +00:00
|
|
|
PrefsAddBool("noclipconversion", false);
|
2005-03-27 22:08:33 +00:00
|
|
|
PrefsAddBool("ignoresegv", false);
|
2009-07-20 18:50:28 +00:00
|
|
|
PrefsAddBool("ignoreillegal", false);
|
2003-12-03 10:52:50 +00:00
|
|
|
|
|
|
|
#if USE_JIT
|
|
|
|
// JIT compiler specific options
|
|
|
|
PrefsAddBool("jit", true);
|
|
|
|
#else
|
|
|
|
PrefsAddBool("jit", false);
|
|
|
|
#endif
|
2004-06-03 21:52:55 +00:00
|
|
|
PrefsAddBool("jit68k", false);
|
2004-01-06 15:03:16 +00:00
|
|
|
|
2009-07-20 18:50:28 +00:00
|
|
|
PrefsAddInt32("keyboardtype", 5);
|
2002-02-04 16:58:13 +00:00
|
|
|
}
|