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; } }
/// <summary> /// Retrieve information about the connected hardware/emulator /// </summary> /// <param name="pCaps">Class to be updated</param> public virtual void ReadMachineCaps(MachineCaps pCaps) { }