[FREELDR]
[reactos.git] / reactos / boot / freeldr / freeldr / arch / i386 / custom.c
index 14e651d..a53d423 100644 (file)
@@ -60,9 +60,6 @@ VOID OptionMenuCustomBoot(VOID)
        case 2: // Boot Sector File
                OptionMenuCustomBootBootSectorFile();
                break;
-       case 3: // ReactOS
-               OptionMenuCustomBootReactOS();
-               break;
        case 4: // Linux
                OptionMenuCustomBootLinux();
                break;
@@ -234,79 +231,6 @@ VOID OptionMenuCustomBootBootSectorFile(VOID)
        LoadAndBootBootSector(SectionName);
 }
 
-VOID OptionMenuCustomBootReactOS(VOID)
-{
-       CHAR    SectionName[100];
-       CHAR    BootDriveString[20];
-       CHAR    BootPartitionString[20];
-       CHAR    ReactOSSystemPath[200];
-       CHAR    ReactOSARCPath[200];
-       CHAR    ReactOSOptions[200];
-       ULONG   SectionId;
-       TIMEINFO*       TimeInfo;
-
-       RtlZeroMemory(SectionName, sizeof(SectionName));
-       RtlZeroMemory(BootDriveString, sizeof(BootDriveString));
-       RtlZeroMemory(BootPartitionString, sizeof(BootPartitionString));
-       RtlZeroMemory(ReactOSSystemPath, sizeof(ReactOSSystemPath));
-       RtlZeroMemory(ReactOSOptions, sizeof(ReactOSOptions));
-
-       if (!UiEditBox(BootDrivePrompt, BootDriveString, 20))
-       {
-               return;
-       }
-
-       if (!UiEditBox(BootPartitionPrompt, BootPartitionString, 20))
-       {
-               return;
-       }
-
-       if (!UiEditBox(ReactOSSystemPathPrompt, ReactOSSystemPath, 200))
-       {
-               return;
-       }
-
-       if (!UiEditBox(ReactOSOptionsPrompt, ReactOSOptions, 200))
-       {
-               return;
-       }
-
-       // Generate a unique section name
-       TimeInfo = ArcGetTime();
-       sprintf(SectionName, "CustomReactOS%u%u%u%u%u%u", TimeInfo->Year, TimeInfo->Day, TimeInfo->Month, TimeInfo->Hour, TimeInfo->Minute, TimeInfo->Second);
-
-       // Add the section
-       if (!IniAddSection(SectionName, &SectionId))
-       {
-               return;
-       }
-
-       // Add the BootType
-       if (!IniAddSettingValueToSection(SectionId, "BootType", "ReactOS"))
-       {
-               return;
-       }
-
-       // Construct the ReactOS ARC system path
-       ConstructArcPath(ReactOSARCPath, ReactOSSystemPath, DriveMapGetBiosDriveNumber(BootDriveString), atoi(BootPartitionString));
-
-       // Add the system path
-       if (!IniAddSettingValueToSection(SectionId, "SystemPath", ReactOSARCPath))
-       {
-               return;
-       }
-
-       // Add the CommandLine
-       if (!IniAddSettingValueToSection(SectionId, "Options", ReactOSOptions))
-       {
-               return;
-       }
-
-       UiMessageBox(CustomBootPrompt);
-
-       LoadAndBootReactOS(SectionName);
-}
-
 VOID OptionMenuCustomBootLinux(VOID)
 {
        CHAR    SectionName[100];