-
-/*void SetSetting(char *setting, char *value)
-{
- char v[260];
-
- if(stricmp(setting, "TitleText") == 0)
- strcpy(szTitleBoxTitleText, value);
- else if(stricmp(setting, "StatusBarColor") == 0)
- cStatusBarBgColor = TextToColor(value);
- else if(stricmp(setting, "StatusBarTextColor") == 0)
- cStatusBarFgColor = TextToColor(value);
- else if(stricmp(setting, "BackdropTextColor") == 0)
- cBackdropFgColor = TextToColor(value);
- else if(stricmp(setting, "BackdropColor") == 0)
- cBackdropBgColor = TextToColor(value);
- else if(stricmp(setting, "BackdropFillStyle") == 0)
- cBackdropFillStyle = TextToFillStyle(value);
- else if(stricmp(setting, "TitleBoxTextColor") == 0)
- cTitleBoxFgColor = TextToColor(value);
- else if(stricmp(setting, "TitleBoxColor") == 0)
- cTitleBoxBgColor = TextToColor(value);
- else if(stricmp(setting, "MessageBoxTextColor") == 0)
- cMessageBoxFgColor = TextToColor(value);
- else if(stricmp(setting, "MessageBoxColor") == 0)
- cMessageBoxBgColor = TextToColor(value);
- else if(stricmp(setting, "MenuTextColor") == 0)
- cMenuFgColor = TextToColor(value);
- else if(stricmp(setting, "MenuColor") == 0)
- cMenuBgColor = TextToColor(value);
- else if(stricmp(setting, "TextColor") == 0)
- cTextColor = TextToColor(value);
- else if(stricmp(setting, "SelectedTextColor") == 0)
- cSelectedTextColor = TextToColor(value);
- else if(stricmp(setting, "SelectedColor") == 0)
- cSelectedTextBgColor = TextToColor(value);
- else if(stricmp(setting, "OS") == 0)
- {
- if(nNumOS >= 16)
- {
- printf("Error: you can only boot to at most 16 different operating systems.\n");
- printf("Press any key to continue\n");
- getch();
- return;
- }
-
- if(!GetNumSectionItems(value))
- {
- printf("Error: OS \"%s\" listed.\n", value);
- printf("It does not have it's own [section], or it is empty.\n");
- printf("Press any key to continue\n");
- getch();
- return;
- }
-
- strcpy(OSList[nNumOS].name, value);
-
- if (!ReadSectionSettingByName(value, "BootType", v))
- {
- printf("Unknown BootType for OS \"%s\"\n", value);
- printf("Press any key to continue\n");
- getch();
- return;
- }
-
- if (stricmp(v, "ReactOS") == 0)
- OSList[nNumOS].nOSType = OSTYPE_REACTOS;
- else if (stricmp(v, "Linux") == 0)
- OSList[nNumOS].nOSType = OSTYPE_LINUX;
- else if (stricmp(v, "BootSector") == 0)
- OSList[nNumOS].nOSType = OSTYPE_BOOTSECTOR;
- else if (stricmp(v, "Partition") == 0)
- OSList[nNumOS].nOSType = OSTYPE_PARTITION;
- else if (stricmp(v, "Drive") == 0)
- OSList[nNumOS].nOSType = OSTYPE_DRIVE;
- else
- {
- printf("Unknown BootType for OS \"%s\"\n", value);
- printf("Press any key to continue\n");
- getch();
- return;
- }
-
- nNumOS++;
- }
- else if(stricmp(setting, "TimeOut") == 0)
- nTimeOut = atoi(value);
-}*/