Ticket #3169: LegacyBootDrive.cpp_r28723.diff
File LegacyBootDrive.cpp_r28723.diff, 784 bytes (added by , 16 years ago) |
---|
-
LegacyBootDrive.cpp
322 322 _CopyPartitionTable(newMBR, &oldMBR); 323 323 324 324 int menuEntries = 0; 325 int defaultMenuEntry = 0; 325 326 BMessage partition; 326 327 int32 index; 327 328 for (index = 0; settings->FindMessage("partition", index, &partition) == B_OK; index ++) { 328 329 bool show; 329 330 partition.FindBool("show", &show); 330 331 if (!show) 331 332 continue; 333 if (index == defaultPartitionIndex) 334 defaultMenuEntry = menuEntries; 332 335 333 336 menuEntries ++; 334 337 } 335 338 newBootLoader.WriteInt16(menuEntries); 336 newBootLoader.WriteInt16(default PartitionIndex);339 newBootLoader.WriteInt16(defaultMenuEntry); 337 340 newBootLoader.WriteInt16(timeout); 338 341 339 342