--- BasiliskII/src/Windows/prefs_windows.cpp 2004/12/03 22:04:24 1.3 +++ BasiliskII/src/Windows/prefs_windows.cpp 2005/11/20 17:26:16 1.9 @@ -1,7 +1,7 @@ /* * prefs_windows.cpp - Preferences handling, Windows specific stuff * - * Basilisk II (C) 1997-2004 Christian Bauer + * Basilisk II (C) 1997-2005 Christian Bauer * * 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 @@ -42,6 +42,18 @@ prefs_desc platform_prefs_items[] = { {"ignoresegv", TYPE_BOOLEAN, false, "ignore illegal memory accesses"}, #endif {"enableextfs", TYPE_BOOLEAN, false, "enable extfs system"}, + {"debugextfs", TYPE_BOOLEAN, false, "debug extfs system"}, + {"extdrives", TYPE_STRING, false, "define allowed extfs drives"}, + {"pollmedia", TYPE_BOOLEAN, false, "poll for new media (e.g. cd, floppy)"}, + {"etherpermanentaddress", TYPE_BOOLEAN, false, "use permanent NIC address to identify itself"}, + {"ethermulticastmode", TYPE_INT32, false, "how to multicast packets"}, + {"etherfakeaddress", TYPE_STRING, false, "optional fake hardware address"}, + {"routerenabled", TYPE_BOOLEAN, false, "enable NAT/Router module"}, + {"ftp_port_list", TYPE_STRING, false, "FTP ports list"}, + {"tcp_port", TYPE_STRING, false, "TCP ports list"}, + {"portfile0", TYPE_STRING, false, "output file for serial port 0"}, + {"portfile1", TYPE_STRING, false, "output file for serial port 1"}, + {NULL, TYPE_END, false, NULL} // End of list }; @@ -107,11 +119,21 @@ void SavePrefs(void) void AddPlatformPrefsDefaults(void) { PrefsAddBool("keycodes", false); + PrefsReplaceBool("pollmedia", true); + PrefsReplaceBool("enableextfs", false); PrefsReplaceString("extfs", ""); + PrefsReplaceString("extdrives", "CDEFGHIJKLMNOPQRSTUVWXYZ"); PrefsReplaceInt32("mousewheelmode", 1); PrefsReplaceInt32("mousewheellines", 3); #ifdef HAVE_SIGSEGV_SKIP_INSTRUCTION PrefsAddBool("ignoresegv", false); #endif - PrefsReplaceBool("enableextfs", false); + PrefsReplaceBool("etherpermanentaddress", true); + PrefsReplaceInt32("ethermulticastmode", 0); + PrefsReplaceBool("routerenabled", false); + PrefsReplaceString("ftp_port_list", "21"); + PrefsReplaceString("seriala", "COM1"); + PrefsReplaceString("serialb", "COM2"); + PrefsReplaceString("portfile0", "C:\\B2TEMP0.OUT"); + PrefsReplaceString("portfile1", "C:\\B2TEMP1.OUT"); }