/// <summary>Get the given target's IP:Port.</summary> public string GetTargetIPPort(int target) { PS3TMAPI.InitTargetComms(); PS3TMAPI.TargetInfo TargetInfo = new PS3TMAPI.TargetInfo() { Flags = PS3TMAPI.TargetInfoFlag.TargetID, Target = target }; PS3TMAPI.GetTargetInfo(ref TargetInfo); Parameters.IPPort = TargetInfo.Info.Split(' ').Last(); return(Parameters.IPPort); }
/// <summary>Get the given target name.</summary> public string GetTargetName(int target) { PS3TMAPI.InitTargetComms(); PS3TMAPI.TargetInfo TargetInfo = new PS3TMAPI.TargetInfo() { Flags = PS3TMAPI.TargetInfoFlag.TargetID, Target = target }; PS3TMAPI.GetTargetInfo(ref TargetInfo); Parameters.ConsoleName = TargetInfo.Name; return(Parameters.ConsoleName); }