mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
setupldr previously worked by faking the FreeLdr OS menu function. Now
FreeLdr has a special OS type for ReactOS Setup, which will only work for the bootcd. As a result, bootcd can display a menu now. This opens up the possibility of including both a "live" environment for users to play with as well as the opportunity to install, from the same disc. svn path=/trunk/; revision=38962
This commit is contained in:
parent
56a1175be8
commit
f7e32af29b
6 changed files with 20 additions and 7 deletions
|
@ -115,6 +115,14 @@ VOID RunLoader(VOID)
|
||||||
{
|
{
|
||||||
LoadAndBootReactOS(OperatingSystemSectionNames[SelectedOperatingSystem]);
|
LoadAndBootReactOS(OperatingSystemSectionNames[SelectedOperatingSystem]);
|
||||||
}
|
}
|
||||||
|
#ifdef FREELDR_ROS_SETUP
|
||||||
|
else if (_stricmp(SettingValue, "ReactOSSetup") == 0)
|
||||||
|
{
|
||||||
|
// Could probably pass the selection across at a later date
|
||||||
|
// which might be useful for different install methods?
|
||||||
|
RunReactOSSetup();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
else if (_stricmp(SettingValue, "WindowsNT40") == 0)
|
else if (_stricmp(SettingValue, "WindowsNT40") == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -77,6 +77,12 @@
|
||||||
<file>version.c</file>
|
<file>version.c</file>
|
||||||
<file>cmdline.c</file>
|
<file>cmdline.c</file>
|
||||||
<file>machine.c</file>
|
<file>machine.c</file>
|
||||||
|
<file>drivemap.c</file>
|
||||||
|
<file>miscboot.c</file>
|
||||||
|
<file>options.c</file>
|
||||||
|
<file>linuxboot.c</file>
|
||||||
|
<file>oslist.c</file>
|
||||||
|
<file>custom.c</file>
|
||||||
<directory name="include">
|
<directory name="include">
|
||||||
<pch>freeldr.h</pch>
|
<pch>freeldr.h</pch>
|
||||||
</directory>
|
</directory>
|
||||||
|
|
|
@ -7,10 +7,4 @@
|
||||||
<compilerflag>-fno-inline</compilerflag>
|
<compilerflag>-fno-inline</compilerflag>
|
||||||
<compilerflag>-fno-zero-initialized-in-bss</compilerflag>
|
<compilerflag>-fno-zero-initialized-in-bss</compilerflag>
|
||||||
<file>bootmgr.c</file>
|
<file>bootmgr.c</file>
|
||||||
<file>drivemap.c</file>
|
|
||||||
<file>miscboot.c</file>
|
|
||||||
<file>options.c</file>
|
|
||||||
<file>linuxboot.c</file>
|
|
||||||
<file>oslist.c</file>
|
|
||||||
<file>custom.c</file>
|
|
||||||
</module>
|
</module>
|
||||||
|
|
|
@ -107,5 +107,6 @@
|
||||||
|
|
||||||
VOID BootMain(LPSTR CmdLine);
|
VOID BootMain(LPSTR CmdLine);
|
||||||
VOID RunLoader(VOID);
|
VOID RunLoader(VOID);
|
||||||
|
VOID RunReactOSSetup(VOID);
|
||||||
|
|
||||||
#endif // defined __FREELDR_H
|
#endif // defined __FREELDR_H
|
||||||
|
|
|
@ -42,7 +42,7 @@ extern BOOLEAN FrLdrLoadNlsFile(PCSTR szFileName, PCSTR szModuleName);
|
||||||
|
|
||||||
#define USE_UI
|
#define USE_UI
|
||||||
|
|
||||||
VOID RunLoader(VOID)
|
VOID RunReactOSSetup(VOID)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
LPCSTR SourcePath;
|
LPCSTR SourcePath;
|
||||||
|
|
|
@ -4,11 +4,15 @@
|
||||||
<include base="setupldr_main">include</include>
|
<include base="setupldr_main">include</include>
|
||||||
<include base="ntoskrnl">include</include>
|
<include base="ntoskrnl">include</include>
|
||||||
<define name="_NTHAL_" />
|
<define name="_NTHAL_" />
|
||||||
|
<define name="FREELDR_ROS_SETUP" />
|
||||||
<compilerflag>-ffreestanding</compilerflag>
|
<compilerflag>-ffreestanding</compilerflag>
|
||||||
<compilerflag>-fno-builtin</compilerflag>
|
<compilerflag>-fno-builtin</compilerflag>
|
||||||
<compilerflag>-fno-inline</compilerflag>
|
<compilerflag>-fno-inline</compilerflag>
|
||||||
<compilerflag>-fno-zero-initialized-in-bss</compilerflag>
|
<compilerflag>-fno-zero-initialized-in-bss</compilerflag>
|
||||||
<compilerflag>-Os</compilerflag>
|
<compilerflag>-Os</compilerflag>
|
||||||
|
|
||||||
|
<file>bootmgr.c</file>
|
||||||
|
|
||||||
<directory name="inffile">
|
<directory name="inffile">
|
||||||
<file>inffile.c</file>
|
<file>inffile.c</file>
|
||||||
</directory>
|
</directory>
|
||||||
|
|
Loading…
Reference in a new issue