mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Make boot options for the bootcd dependent on DBG. Suggested by Caemyr.
svn path=/trunk/; revision=28311
This commit is contained in:
@@ -39,8 +39,8 @@ Cabinet=reactos.cab
|
||||
|
||||
[SetupData]
|
||||
DefaultPath = \ReactOS
|
||||
;OsLoadOptions = "/NOGUIBOOT /NODEBUG"
|
||||
OsLoadOptions = "/NOGUIBOOT /DEBUGPORT=COM1"
|
||||
OsLoadOptions = "/NOGUIBOOT /NODEBUG"
|
||||
DbgOsLoadOptions = "/NOGUIBOOT /DEBUGPORT=COM1"
|
||||
;OsLoadOptions = "/NOGUIBOOT /DEBUGPORT=SCREEN"
|
||||
;OsLoadOptions = "/NOGUIBOOT /DEBUGPORT=BOCHS"
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ VOID RunLoader(VOID)
|
||||
ULONG_PTR Base;
|
||||
ULONG Size;
|
||||
const char *SourcePath;
|
||||
const char *LoadOptions;
|
||||
const char *LoadOptions = "", *DbgLoadOptions = "";
|
||||
char szKernelName[256];
|
||||
|
||||
HINF InfHandle;
|
||||
@@ -249,8 +249,18 @@ VOID RunLoader(VOID)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Get load options */
|
||||
if (!InfFindFirstLine (InfHandle,
|
||||
#ifdef DBG
|
||||
/* Get load options */
|
||||
if (InfFindFirstLine (InfHandle,
|
||||
"SetupData",
|
||||
"DbgOsLoadOptions",
|
||||
&InfContext))
|
||||
{
|
||||
if (!InfGetDataField (&InfContext, 1, &DbgLoadOptions))
|
||||
DbgLoadOptions = "";
|
||||
}
|
||||
#endif
|
||||
if (!strlen(DbgLoadOptions) && !InfFindFirstLine (InfHandle,
|
||||
"SetupData",
|
||||
"OsLoadOptions",
|
||||
&InfContext))
|
||||
@@ -283,8 +293,8 @@ VOID RunLoader(VOID)
|
||||
|
||||
/* Set kernel command line */
|
||||
MachDiskGetBootPath(reactos_kernel_cmdline, sizeof(reactos_kernel_cmdline));
|
||||
strcat(strcat(strcat(reactos_kernel_cmdline, SourcePath), " "),
|
||||
LoadOptions);
|
||||
strcat(strcat(strcat(strcat(reactos_kernel_cmdline, SourcePath), " "),
|
||||
LoadOptions), DbgLoadOptions);
|
||||
|
||||
strcpy(SystemRoot, SourcePath);
|
||||
strcat(SystemRoot, "\\");
|
||||
|
||||
Reference in New Issue
Block a user