425 |
|
menu->AddItem(new BMenuItem(GetString(STR_BOOT_ANY_LAB), new BMessage(MSG_BOOT_ANY))); |
426 |
|
menu->AddItem(new BMenuItem(GetString(STR_BOOT_CDROM_LAB), new BMessage(MSG_BOOT_CDROM))); |
427 |
|
pane->AddChild(menu_field); |
428 |
< |
int16 i16 = PrefsFindInt16("bootdriver"); |
428 |
> |
int32 i32 = PrefsFindInt32("bootdriver"); |
429 |
|
BMenuItem *item; |
430 |
< |
if (i16 == 0) { |
430 |
> |
if (i32 == 0) { |
431 |
|
if ((item = menu->FindItem(GetString(STR_BOOT_ANY_LAB))) != NULL) |
432 |
|
item->SetMarked(true); |
433 |
< |
} else if (i16 == CDROMRefNum) { |
433 |
> |
} else if (i32 == CDROMRefNum) { |
434 |
|
if ((item = menu->FindItem(GetString(STR_BOOT_CDROM_LAB))) != NULL) |
435 |
|
item->SetMarked(true); |
436 |
|
} |
875 |
|
} |
876 |
|
|
877 |
|
case MSG_BOOT_ANY: |
878 |
< |
PrefsReplaceInt16("bootdriver", 0); |
878 |
> |
PrefsReplaceInt32("bootdriver", 0); |
879 |
|
break; |
880 |
|
|
881 |
|
case MSG_BOOT_CDROM: |
882 |
< |
PrefsReplaceInt16("bootdriver", CDROMRefNum); |
882 |
> |
PrefsReplaceInt32("bootdriver", CDROMRefNum); |
883 |
|
break; |
884 |
|
|
885 |
|
case MSG_NOCDROM: |