private void ADB_TextChanged(object sender, TextChangedEventArgs e) { if (HostControl != null) { HostControl.PConfig.ADBAddress = UIADBAdrress.Text; AccessGameRes.InitADBAddress(HostControl.PConfig.ADBAddress); } }
public override async System.Threading.Tasks.Task <bool> InitGame(IntPtr WinHandle, UInt32 width, UInt32 height, EngineNS.GamePlay.GGameInstanceDesc desc, EngineNS.Graphics.CGfxCamera camera) { #if PWindow EngineNS.Bricks.RemoteServices.RPCExecuter.Instance.SaveCode(); #elif PAndroid AccessGameRes.CheckAndCreateFirstAssetList(); #endif return(await base.InitGame(WinHandle, width, height, desc, camera)); }
private void ADB_Click(object sender, RoutedEventArgs e) { var ofd = new System.Windows.Forms.OpenFileDialog(); //ofd.Multiselect = true; if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { UIADBAdrress.Text = ofd.FileName; if (HostControl != null) { HostControl.PConfig.ADBAddress = UIADBAdrress.Text; AccessGameRes.InitADBAddress(HostControl.PConfig.ADBAddress); } } }
public void GetDevice() { DeviceNodes.Clear(); AllDevices.Clear(); string[] devices = AccessGameRes.GetDeviceName(); string[] ids = AccessGameRes.GetDeviceID(); int length = Math.Min(devices.Length, ids.Length); for (int i = 0; i < length; i++) { BindData data = new BindData(); data.DeviceID = ids[i]; data.ShowName = devices[i] + " " + data.DeviceID; DeviceNodes.Add(data); AllDevices.Add(data); } }