Team Ai
Datasetpublic

hschumann2/TempleOS-Source-Code

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