void PushGame(string uName) { string fldrPATH = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\Blu\\GameFiles\\" + CurrentApp; ADBcommands adb = new ADBcommands(); adb.uninstallGame(statusblock, comOBJ); adb.setperms(statusblock, OBBname); adb.pushOBB(statusblock, fldrPATH, CurrentApp, OBBname, comOBJ); adb.pushAPK(statusblock, fldrPATH, CurrentApp, APKname); adb.pavSetName(uName, statusblock); }
private void pushmap_Click(object sender, RoutedEventArgs e) { System.Windows.Forms.FolderBrowserDialog openFileDlg = new System.Windows.Forms.FolderBrowserDialog(); System.Windows.Forms.DialogResult result = openFileDlg.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { string mapDir = openFileDlg.SelectedPath; string mapName = System.IO.Path.GetDirectoryName(mapDir); statusblock.Text = mapName; mapName = mapDir.Replace(mapName, ""); statusblock.Text = mapName; mapName = mapName.Replace("\\", ""); statusblock.Text = mapName; ADBcommands adb = new ADBcommands(); adb.PushMap(mapDir, mapName, statusblock); adb.adbKill(); } }