Esempio n. 1
0
        private void m_itemDisasm_Click(object sender, EventArgs e)
        {
            var exporter = new XmlExporter(m_project.ResourceDirectory, m_project.ImageFileType, m_actionLibs);

            exporter.ProcessStarted     += Exporter_ProcessStarted;
            exporter.ProcessFinished    += Exporter_ProcessFinished;
            exporter.CategoryProcessing += Exporter_CategoryProcessing;
            exporter.CategoryProcessed  += Exporter_CategoryProcessed;

            if (Settings.Default.VerboseLog)
            {
                exporter.ResourceProcessed += Exporter_ResourceProcessed;
            }

            if (m_gmFile == null)
            {
                LoadGameFile();
            }

            if (CleanupResourceDirectory())
            {
                SetLoggedStatus("Disassembling file...");
                exporter.Process(m_gmFile);

                LogLine("Project has been disassembled!", MessageType.Success, false);
                SetStatus("File disassembled.");
            }
            else
            {
                LogLine("Process aborted.", MessageType.Warning, false);
                SetStatus("Process aborted.");
            }

            m_statusProgress.Value = m_statusProgress.Maximum;
        }