2000-07-25 15:19:43 +00:00
|
|
|
/*
|
|
|
|
* prefs_items.cpp - Common preferences items
|
|
|
|
*
|
2008-01-01 09:40:36 +00:00
|
|
|
* Basilisk II (C) 1997-2008 Christian Bauer
|
2000-07-25 15:19:43 +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
|
|
|
|
*/
|
|
|
|
|
2000-07-25 16:25:04 +00:00
|
|
|
#include "sysdeps.h"
|
|
|
|
|
|
|
|
#include "sys.h"
|
2000-07-25 15:19:43 +00:00
|
|
|
#include "prefs.h"
|
|
|
|
|
|
|
|
|
|
|
|
// Common preferences items (those which exist on all platforms)
|
|
|
|
// Except for "disk", "floppy", "cdrom", "scsiX", "screen", "rom" and "ether",
|
2001-01-04 19:50:23 +00:00
|
|
|
// these are guaranteed to be in the prefs.
|
2000-07-25 15:19:43 +00:00
|
|
|
prefs_desc common_prefs_items[] = {
|
2016-08-15 11:38:25 +00:00
|
|
|
{"displaycolordepth", TYPE_INT32, false, "display color depth"},
|
2001-04-01 12:11:45 +00:00
|
|
|
{"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"},
|
|
|
|
{"screen", TYPE_STRING, false, "video mode"},
|
|
|
|
{"seriala", TYPE_STRING, false, "device name of Mac serial port A"},
|
|
|
|
{"serialb", TYPE_STRING, false, "device name of Mac serial port B"},
|
|
|
|
{"ether", TYPE_STRING, false, "device name of Mac ethernet adapter"},
|
2004-05-09 16:16:05 +00:00
|
|
|
{"etherconfig", TYPE_STRING, false,"path of network config script"},
|
2001-07-12 19:48:28 +00:00
|
|
|
{"udptunnel", TYPE_BOOLEAN, false, "tunnel all network packets over UDP"},
|
|
|
|
{"udpport", TYPE_INT32, false, "IP port number for tunneling"},
|
2012-10-30 05:32:38 +00:00
|
|
|
{"redir", TYPE_STRING, true, "port forwarding for slirp"},
|
2001-04-01 12:11:45 +00:00
|
|
|
{"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"},
|
|
|
|
{"modelid", TYPE_INT32, false, "Mac Model ID (Gestalt Model ID minus 6)"},
|
|
|
|
{"cpu", TYPE_INT32, false, "CPU type (0 = 68000, 1 = 68010 etc.)"},
|
|
|
|
{"fpu", TYPE_BOOLEAN, false, "enable FPU emulation"},
|
|
|
|
{"nocdrom", TYPE_BOOLEAN, false, "don't install CD-ROM driver"},
|
|
|
|
{"nosound", TYPE_BOOLEAN, false, "don't enable sound output"},
|
|
|
|
{"noclipconversion", TYPE_BOOLEAN, false, "don't convert clipboard contents"},
|
|
|
|
{"nogui", TYPE_BOOLEAN, false, "disable GUI"},
|
2002-09-17 16:06:37 +00:00
|
|
|
{"jit", TYPE_BOOLEAN, false, "enable JIT compiler"},
|
|
|
|
{"jitfpu", TYPE_BOOLEAN, false, "enable JIT compilation of FPU instructions"},
|
|
|
|
{"jitdebug", TYPE_BOOLEAN, false, "enable JIT debugger (requires mon builtin)"},
|
|
|
|
{"jitcachesize", TYPE_INT32, false, "translation cache size in KB"},
|
|
|
|
{"jitlazyflush", TYPE_BOOLEAN, false, "enable lazy invalidation of translation cache"},
|
2005-06-06 19:22:56 +00:00
|
|
|
{"jitinline", TYPE_BOOLEAN, false, "enable translation through constant jumps"},
|
2003-10-14 10:29:19 +00:00
|
|
|
{"jitblacklist", TYPE_STRING, false, "blacklist opcodes from translation"},
|
2003-08-16 03:28:58 +00:00
|
|
|
{"keyboardtype", TYPE_INT32, false, "hardware keyboard type"},
|
2020-02-04 14:25:12 +00:00
|
|
|
{"keycodes", TYPE_BOOLEAN, false, "use keycodes rather than keysyms to decode keyboard"},
|
|
|
|
{"keycodefile", TYPE_STRING, false, "path of keycode translation file"},
|
|
|
|
{"mousewheelmode", TYPE_INT32, false, "mouse wheel support (0=page up/down, 1=cursor up/down)"},
|
|
|
|
{"mousewheellines", TYPE_INT32, false, "number of lines to scroll in mouse wheel mode 1"},
|
2018-06-27 10:13:30 +00:00
|
|
|
{"hotkey",TYPE_INT32,false,"hotkey modifier"},
|
2019-01-12 09:22:51 +00:00
|
|
|
{"scale_nearest",TYPE_BOOLEAN,false,"nearest neighbor scaling"},
|
|
|
|
{"scale_integer",TYPE_BOOLEAN,false,"integer scaling"},
|
2019-02-05 09:44:24 +00:00
|
|
|
{"yearofs", TYPE_INT32, 0, "year offset"},
|
2019-02-09 21:44:43 +00:00
|
|
|
{"dayofs", TYPE_INT32, 0, "day offset"},
|
2020-08-30 06:09:09 +00:00
|
|
|
{"mag_rate", TYPE_INT32, 0, "rate of magnification"},
|
2020-09-13 04:49:48 +00:00
|
|
|
{"gammaramp", TYPE_STRING, false, "gamma ramp (on, off or fullscreen)"},
|
2020-10-06 06:38:35 +00:00
|
|
|
{"swap_opt_cmd", TYPE_BOOLEAN, false, "swap option and command key"},
|
2020-10-10 06:07:12 +00:00
|
|
|
{"ignoresegv", TYPE_BOOLEAN, false, "ignore illegal memory accesses"},
|
2020-11-14 10:23:42 +00:00
|
|
|
{"host_domain", TYPE_STRING, true, "handle DNS requests for this domain on the host (slirp only)"},
|
2021-02-27 09:29:57 +00:00
|
|
|
{"title", TYPE_STRING, false, "window title"},
|
2021-03-17 02:42:37 +00:00
|
|
|
{"sound_buffer", TYPE_INT32, false, "sound buffer length"},
|
2021-04-21 12:29:05 +00:00
|
|
|
{"name_encoding", TYPE_INT32, false, "file name encoding"},
|
2022-03-16 04:40:14 +00:00
|
|
|
{"delay", TYPE_INT32, false, "additional delay [uS] every 64k instructions"},
|
2024-01-11 02:00:04 +00:00
|
|
|
{"init_grab", TYPE_BOOLEAN, false, "initially grabbing mouse"},
|
2001-04-01 12:11:45 +00:00
|
|
|
{NULL, TYPE_END, false, NULL} // End of list
|
2000-07-25 15:19:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Set default values for preferences items
|
|
|
|
*/
|
|
|
|
|
|
|
|
void AddPrefsDefaults(void)
|
|
|
|
{
|
|
|
|
SysAddSerialPrefs();
|
2001-07-12 19:48:28 +00:00
|
|
|
PrefsAddBool("udptunnel", false);
|
|
|
|
PrefsAddInt32("udpport", 6066);
|
2001-01-04 19:50:23 +00:00
|
|
|
PrefsAddInt32("bootdriver", 0);
|
|
|
|
PrefsAddInt32("bootdrive", 0);
|
2000-07-25 15:19:43 +00:00
|
|
|
PrefsAddInt32("ramsize", 8 * 1024 * 1024);
|
|
|
|
PrefsAddInt32("frameskip", 6);
|
|
|
|
PrefsAddInt32("modelid", 5); // Mac IIci
|
|
|
|
PrefsAddInt32("cpu", 3); // 68030
|
2016-08-15 11:38:25 +00:00
|
|
|
PrefsAddInt32("displaycolordepth", 0);
|
2000-07-25 15:19:43 +00:00
|
|
|
PrefsAddBool("fpu", false);
|
|
|
|
PrefsAddBool("nocdrom", false);
|
|
|
|
PrefsAddBool("nosound", false);
|
|
|
|
PrefsAddBool("noclipconversion", false);
|
|
|
|
PrefsAddBool("nogui", false);
|
2002-09-17 16:06:37 +00:00
|
|
|
|
|
|
|
#if USE_JIT
|
|
|
|
// JIT compiler specific options
|
2020-10-10 06:07:12 +00:00
|
|
|
// PrefsAddBool("jit", true);
|
2002-09-17 16:06:37 +00:00
|
|
|
PrefsAddBool("jitfpu", true);
|
|
|
|
PrefsAddBool("jitdebug", false);
|
|
|
|
PrefsAddInt32("jitcachesize", 8192);
|
2005-11-22 06:48:55 +00:00
|
|
|
PrefsAddBool("jitlazyflush", true);
|
2005-06-06 19:22:56 +00:00
|
|
|
PrefsAddBool("jitinline", true);
|
2002-09-17 16:06:37 +00:00
|
|
|
#else
|
|
|
|
PrefsAddBool("jit", false);
|
|
|
|
#endif
|
2003-08-16 03:28:58 +00:00
|
|
|
|
|
|
|
PrefsAddInt32("keyboardtype", 5);
|
2020-10-06 06:38:35 +00:00
|
|
|
|
|
|
|
#ifdef __APPLE__
|
|
|
|
PrefsAddBool("swap_opt_cmd", false);
|
|
|
|
#else
|
|
|
|
PrefsAddBool("swap_opt_cmd", true);
|
|
|
|
#endif
|
2020-10-10 06:07:12 +00:00
|
|
|
PrefsAddBool("ignoresegv", true);
|
2000-07-25 15:19:43 +00:00
|
|
|
}
|