File size: 1,238 Bytes
806d4b5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
#help_index "Misc/Host"
public Bool HostChgDsk(U8 *iso_filename)
{//Help user change CD/DVD or ISO_file.
Bool res=FALSE;
SettingsPush; //See SettingsPush
try {
AutoComplete;
WinBorder;
WinMax;
DocClear;
"$PURPLE$$TX+CX,\"Set to %s\"$$FG$\n\n\n\n",iso_filename;
switch (ins_reg.host_vm) {
case VM_VMWARE:
if (IsDotC(iso_filename))
"
Click CDROM Icon in bottom-right border of VMware window.
Click \"Settings\".
Set ISO image to \"%s\".
When browsing, change the file mask from \"*.iso\" to \"All Files\".
",iso_filename;
else
"
Click CDROM Icon in bottom-right border of VMware window.
Click \"Settings\".
Set ISO image to \"%s\".
",iso_filename;
break;
case VM_QEMU:
"
Change to QEMU monitor using <CTRL-ALT-2>
Get the CDROM designation.
>info block
Use the designation.
>eject ide1-cd0
Use the designation.
>change ide1-cd0 %s
Change back to QEMU using <CTRL-ALT-1>
",iso_filename;
break;
default:
"
Place the CDDVD %s in the drive.
",iso_filename;
}
if (PressAKey!=CH_SHIFT_ESC) {
">DskChg('T');\n\n";
DskChg('T');
res=TRUE;
}
} catch
PutExcept;
SettingsPop;
return res;
}
|