Esempio n. 1
0
 public bool setGARC(string outfile, string infolder, bool PB)
 {
     try
     {
         bool success = GARCTool.garcPackMS(infolder, outfile, (PB) ? pBar1 : null, null, true);
         threads--;
         updateStatus(String.Format(success ? "Success!" : "Failed!"), false);
         return success;
     }
     catch (Exception e) { Util.Error("Could not set the GARC back:", e.ToString()); threads--; return false; }
 }
Esempio n. 2
0
 public bool getGARC(string infile, string outfolder, bool PB, bool bypassExt = false)
 {
     try
     {
         bool success = GARCTool.garcUnpack(infile, outfolder, bypassExt, (PB) ? pBar1 : null, null, true, bypassExt);
         updateStatus(String.Format(success ? "Success!" : "Failed!"), false);
         threads--;
         return success;
     }
     catch (Exception e) { Util.Error("Could not get the GARC:", e.ToString()); threads--; return false; }
 }
Esempio n. 3
0
        public bool setGARC(string outfile, string infolder, bool PB)
        {
            if (ModifierKeys == Keys.Control && Util.Prompt(MessageBoxButtons.YesNo, "Cancel writing data back to GARC?") == DialogResult.Yes)
            {
                threads--; updateStatus(String.Format("Aborted!"), false); return(false);
            }

            try
            {
                bool success = GARCTool.garcPackMS(infolder, outfile, (PB) ? pBar1 : null, null, true);
                threads--;
                updateStatus(String.Format(success ? "Success!" : "Failed!"), false);
                return(success);
            }
            catch (Exception e) { Util.Error("Could not set the GARC back:", e.ToString()); threads--; return(false); }
        }
Esempio n. 4
0
 private void mainThread()
 {
     GARCTool.garcOmni(TB_Path.Text, progressBar);
 }