mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 23:55:07 +00:00
Add a SourceDiskFiles section in txtsetup.sif, instead of hardcoding a list of drivers in freeldr
svn path=/trunk/; revision=29900
This commit is contained in:
parent
36a91123ec
commit
9b47f9fb33
|
@ -11,6 +11,20 @@ Signature = "$ReactOS$"
|
||||||
6 = media\fonts
|
6 = media\fonts
|
||||||
7 = bin
|
7 = bin
|
||||||
|
|
||||||
|
[SourceDiskFiles]
|
||||||
|
;acpi.sys=,,,,,,x
|
||||||
|
;isapnp.sys=,,,,,,x
|
||||||
|
;pci.sys=,,,,,,x
|
||||||
|
scsiport.sys=,,,,,,x
|
||||||
|
class2.sys=,,,,,,x
|
||||||
|
cdrom.sys=,,,,,,x
|
||||||
|
cdfs.sys=,,,,,,x
|
||||||
|
disk.sys=,,,,,,x
|
||||||
|
floppy.sys=,,,,,,x
|
||||||
|
i8042prt.sys=,,,,,,x
|
||||||
|
kbdclass.sys=,,,,,,x
|
||||||
|
blue.sys=,,,,,,x
|
||||||
|
|
||||||
[SourceFiles]
|
[SourceFiles]
|
||||||
; <filename> = <directory_id>
|
; <filename> = <directory_id>
|
||||||
atapi.sys = 3
|
atapi.sys = 3
|
||||||
|
|
|
@ -448,28 +448,6 @@ for(;;);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* Load acpi.sys */
|
|
||||||
if (!LoadDriver(SourcePath, "acpi.sys"))
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* Load isapnp.sys */
|
|
||||||
if (!LoadDriver(SourcePath, "isapnp.sys"))
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* Load pci.sys */
|
|
||||||
if (!LoadDriver(SourcePath, "pci.sys"))
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Load scsiport.sys */
|
|
||||||
if (!LoadDriver(SourcePath, "scsiport.sys"))
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Load atapi.sys (depends on hardware detection) */
|
/* Load atapi.sys (depends on hardware detection) */
|
||||||
if (!LoadDriver(SourcePath, "atapi.sys"))
|
if (!LoadDriver(SourcePath, "atapi.sys"))
|
||||||
return;
|
return;
|
||||||
|
@ -478,40 +456,30 @@ for(;;);
|
||||||
if (!LoadDriver(SourcePath, "buslogic.sys"))
|
if (!LoadDriver(SourcePath, "buslogic.sys"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Load class2.sys */
|
|
||||||
if (!LoadDriver(SourcePath, "class2.sys"))
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Load cdrom.sys */
|
|
||||||
if (!LoadDriver(SourcePath, "cdrom.sys"))
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Load cdfs.sys */
|
|
||||||
if (!LoadDriver(SourcePath, "cdfs.sys"))
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Load disk.sys */
|
|
||||||
if (!LoadDriver(SourcePath, "disk.sys"))
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Load floppy.sys */
|
|
||||||
if (!LoadDriver(SourcePath, "floppy.sys"))
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Load vfatfs.sys (could be loaded by the setup prog!) */
|
/* Load vfatfs.sys (could be loaded by the setup prog!) */
|
||||||
if (!LoadDriver(SourcePath, "vfatfs.sys"))
|
if (!LoadDriver(SourcePath, "vfatfs.sys"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* Load additional files specified in txtsetup.inf */
|
||||||
/* Load keyboard driver */
|
if (InfFindFirstLine(InfHandle,
|
||||||
if (!LoadDriver(SourcePath, "i8042prt.sys"))
|
"SourceDiskFiles",
|
||||||
return;
|
NULL,
|
||||||
if (!LoadDriver(SourcePath, "kbdclass.sys"))
|
&InfContext))
|
||||||
return;
|
{
|
||||||
|
do
|
||||||
/* Load screen driver */
|
{
|
||||||
if (!LoadDriver(SourcePath, "blue.sys"))
|
LPCSTR Media, DriverName;
|
||||||
return;
|
if (InfGetDataField(&InfContext, 7, &Media) &&
|
||||||
|
InfGetDataField(&InfContext, 0, &DriverName))
|
||||||
|
{
|
||||||
|
if (strcmp(Media, "x") == 0)
|
||||||
|
{
|
||||||
|
if (!LoadDriver(SourcePath, DriverName))
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} while (InfFindNextLine(&InfContext, &InfContext));
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef USE_UI
|
#ifdef USE_UI
|
||||||
UiUnInitialize("Booting ReactOS...");
|
UiUnInitialize("Booting ReactOS...");
|
||||||
|
|
Loading…
Reference in a new issue