/* * Initialize config file settings */ void FIRMWARE_Init(void) { char **list; std::string config_path, rc_file; Section_prop *secprop; Section_line *secline; Prop_int *Pint; Prop_hex *Phex; Prop_string *Pstring; Prop_bool *Pbool; Prop_multival *Pmulti; Prop_multival_remain *Pmulti_remain; /* Configuration file directory */ Cross::GetPlatformConfigDir(config_path); // Create list of supported firmware systems list = initFirmwareList(); // Setup firmware config file options secprop=control->AddSection_prop("firmware", &FIRMWARE_Config); // System type to use Pstring = secprop->Add_string("system", Property::Changeable::OnlyAtStart, list[0]); Pstring->Set_values(list); Pstring->Set_help("Select the firmware to use."); // System configuration file rc_file = config_path + "sys.rc"; Pstring = secprop->Add_path("sysrc", Property::Changeable::OnlyAtStart, rc_file.c_str()); Pstring->Set_help("Path to the system configuration file."); // Boot rc file rc_file = config_path + "boot.rc"; Pstring = secprop->Add_path("bootrc", Property::Changeable::OnlyAtStart, rc_file.c_str()); Pstring->Set_help("Path to the boot configuration file."); }
void LOG_StartUp(void) { /* Setup logging groups */ loggrp[LOG_ALL].front="ALL"; loggrp[LOG_VGA].front="VGA"; loggrp[LOG_VGAGFX].front="VGAGFX"; loggrp[LOG_VGAMISC].front="VGAMISC"; loggrp[LOG_INT10].front="INT10"; loggrp[LOG_SB].front="SBLASTER"; loggrp[LOG_DMACONTROL].front="DMA_CONTROL"; loggrp[LOG_FPU].front="FPU"; loggrp[LOG_CPU].front="CPU"; loggrp[LOG_PAGING].front="PAGING"; loggrp[LOG_FCB].front="FCB"; loggrp[LOG_FILES].front="FILES"; loggrp[LOG_IOCTL].front="IOCTL"; loggrp[LOG_EXEC].front="EXEC"; loggrp[LOG_DOSMISC].front="DOSMISC"; loggrp[LOG_PIT].front="PIT"; loggrp[LOG_KEYBOARD].front="KEYBOARD"; loggrp[LOG_PIC].front="PIC"; loggrp[LOG_MOUSE].front="MOUSE"; loggrp[LOG_BIOS].front="BIOS"; loggrp[LOG_GUI].front="GUI"; loggrp[LOG_MISC].front="MISC"; loggrp[LOG_IO].front="IO"; loggrp[LOG_PCI].front="PCI"; /* Register the log section */ Section_prop * sect=control->AddSection_prop("log",LOG_Init); Prop_string* Pstring = sect->Add_string("logfile",Property::Changeable::Always,""); Pstring->Set_help("file where the log messages will be saved to"); char buf[1024]; for (Bitu i=1;i<LOG_MAX;i++) { strcpy(buf,loggrp[i].front); lowcase(buf); Prop_bool* Pbool = sect->Add_bool(buf,Property::Changeable::Always,true); Pbool->Set_help("Enable/Disable logging of this type."); } // MSG_Add("LOG_CONFIGFILE_HELP","Logging related options for the debugger.\n"); }