Ejemplo n.º 1
0
        public static void PrepareExternalFiles()
        {
            Application.Current.Dispatcher.BeginInvoke((Action) delegate
            {
                Helpers.RemoveFile(Path.Combine(GetThumbGenFolder(), "7z.dll"));

                // check if MediaInfo.dll is present and if not disable completely its usage
                ExtractModule("MediaInfo.dll", "MediaInfo.dll");

                // check if libmp4v2.dll and MP4V2Wrapper.dll are present and if not disable completely its usage
                ExtractModule("libmp4v2.dll", "libmp4v2.dll");

                if (!FileManager.DisableKhedasFix)
                {
                    ExtractModule("MP4V2Wrapper.dll", "MP4V2Wrapper.dll");
                }

                // if required extract the default (embedded) template (must do it here as it needs unzip)
                FileManager.ExtractDefaultTemplate();
            }, DispatcherPriority.Background);
            MP4Tagger.MP4Manager.Prepare();
        }