1 |
|
/* |
2 |
|
* prefs_items.cpp - Common preferences items |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2001 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2005 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 |
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 |
+ |
{"etherconfig", TYPE_STRING, false,"path of network config script"}, |
47 |
+ |
{"udptunnel", TYPE_BOOLEAN, false, "tunnel all network packets over UDP"}, |
48 |
+ |
{"udpport", TYPE_INT32, false, "IP port number for tunneling"}, |
49 |
|
{"rom", TYPE_STRING, false, "path of ROM file"}, |
50 |
|
{"bootdrive", TYPE_INT32, false, "boot drive number"}, |
51 |
|
{"bootdriver", TYPE_INT32, false, "boot driver number"}, |
58 |
|
{"nosound", TYPE_BOOLEAN, false, "don't enable sound output"}, |
59 |
|
{"noclipconversion", TYPE_BOOLEAN, false, "don't convert clipboard contents"}, |
60 |
|
{"nogui", TYPE_BOOLEAN, false, "disable GUI"}, |
61 |
+ |
{"jit", TYPE_BOOLEAN, false, "enable JIT compiler"}, |
62 |
+ |
{"jitfpu", TYPE_BOOLEAN, false, "enable JIT compilation of FPU instructions"}, |
63 |
+ |
{"jitdebug", TYPE_BOOLEAN, false, "enable JIT debugger (requires mon builtin)"}, |
64 |
+ |
{"jitcachesize", TYPE_INT32, false, "translation cache size in KB"}, |
65 |
+ |
{"jitlazyflush", TYPE_BOOLEAN, false, "enable lazy invalidation of translation cache"}, |
66 |
+ |
{"jitinline", TYPE_BOOLEAN, false, "enable translation through constant jumps"}, |
67 |
+ |
{"jitblacklist", TYPE_STRING, false, "blacklist opcodes from translation"}, |
68 |
+ |
{"keyboardtype", TYPE_INT32, false, "hardware keyboard type"}, |
69 |
|
{NULL, TYPE_END, false, NULL} // End of list |
70 |
|
}; |
71 |
|
|
77 |
|
void AddPrefsDefaults(void) |
78 |
|
{ |
79 |
|
SysAddSerialPrefs(); |
80 |
+ |
PrefsAddBool("udptunnel", false); |
81 |
+ |
PrefsAddInt32("udpport", 6066); |
82 |
|
PrefsAddInt32("bootdriver", 0); |
83 |
|
PrefsAddInt32("bootdrive", 0); |
84 |
|
PrefsAddInt32("ramsize", 8 * 1024 * 1024); |
90 |
|
PrefsAddBool("nosound", false); |
91 |
|
PrefsAddBool("noclipconversion", false); |
92 |
|
PrefsAddBool("nogui", false); |
93 |
+ |
|
94 |
+ |
#if USE_JIT |
95 |
+ |
// JIT compiler specific options |
96 |
+ |
PrefsAddBool("jit", true); |
97 |
+ |
PrefsAddBool("jitfpu", true); |
98 |
+ |
PrefsAddBool("jitdebug", false); |
99 |
+ |
PrefsAddInt32("jitcachesize", 8192); |
100 |
+ |
PrefsAddBool("jitlazyflush", true); |
101 |
+ |
PrefsAddBool("jitinline", true); |
102 |
+ |
#else |
103 |
+ |
PrefsAddBool("jit", false); |
104 |
+ |
#endif |
105 |
+ |
|
106 |
+ |
PrefsAddInt32("keyboardtype", 5); |
107 |
|
} |