コード例 #1
0
        public override void ReadMachineCaps(MachineCaps pCaps)
        {
            var hardware = SendAndReceiveSingle("get-current-machine");

            pCaps.Clear();

            if (!_machineToType.TryGetValue(hardware, out var capList))
            {
                Logging.Write(Logging.Severity.Error, "Unknown machine '" + hardware + "'");
                return;
            }

            var split = capList.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);

            foreach (var item in split)
            {
                pCaps.Has[item] = true;
            }
        }
コード例 #2
0
 /// <summary>
 /// Retrieve information about the connected hardware/emulator
 /// </summary>
 /// <param name="pCaps">Class to be updated</param>
 public virtual void ReadMachineCaps(MachineCaps pCaps)
 {
 }