Beispiel #1
0
        private void UnpackHOGs()
        {
            string path = Path.Combine(Path.GetDirectoryName(PATH), Path.GetFileNameWithoutExtension(PATH));
            HOG    hog;

            foreach (string name in NAMES)
            {
                if (Path.GetExtension(name) == ".HOG")
                {
                    hog = new HOG(Path.Combine(path, name));
                    hog.Unpack();
                }
            }
        }
        private void btnHOGUnpack_Click(object sender, EventArgs e)
        {
            if (HOGUnpackFiles == null || HOGUnpackFiles.Length <= 0)
            {
                MessageBox.Show("Select a file to Unpack!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            HOG hog;

            foreach (string s in HOGUnpackFiles)
            {
                hog = new HOG(s);
                hog.Unpack();
            }
            MessageBox.Show("Sucefully Unpacked!", "Success!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            CleanHOGUnpack();
        }