示例#1
0
 private void PrepareResources()
 {
     // Only need mu_menumain and gct for export
     songEditor.PrepareMUM();
     try
     {
         songEditor.PrepareGCT();
     }
     catch (Exception gctExc)
     {
         DialogResult confirmResult = MessageBox.Show("Unable to load GCT codes 'RSBE01.gct'."
                                                      + " Custom song volume data will not be exported."
                                                      + "\nDo you want to continue?", "Confirm Export",
                                                      MessageBoxButtons.OKCancel);
         if (confirmResult != DialogResult.OK)
         {
             throw new Exception("User cancelled due to lack of 'RSBE01.gct': " + gctExc.Message, gctExc);
         }
     }
 }
示例#2
0
        private void PrepareResources()
        {
            // mu_menumain and info are required, so don't catch their exceptions...
            songEditor.PrepareMUM();
            songEditor.PrepareINFO();
            try
            {
                songEditor.PrepareTRNG();
            }
            catch (Exception trngExc)
            {
                DialogResult confirmResult = MessageBox.Show("Unable to load 'training_info.pac'."
                                                             + " Song title data for training mode and SSE will not be updated."
                                                             + "\nDo you want to continue?", "Confirm Import",
                                                             MessageBoxButtons.OKCancel);
                if (confirmResult != DialogResult.OK)
                {
                    throw new Exception("User cancelled due to lack of 'training_info.pac': " + trngExc.Message,
                                        trngExc);
                }
            }

            try
            {
                songEditor.PrepareGCT();
            }
            catch (Exception gctExc)
            {
                DialogResult confirmResult = MessageBox.Show("Unable to load GCT codes 'RSBE01.gct'."
                                                             + " Song volume data will not be updated."
                                                             + "\nDo you want to continue?", "Confirm Import",
                                                             MessageBoxButtons.OKCancel);
                if (confirmResult != DialogResult.OK)
                {
                    throw new Exception("User cancelled due to lack of 'RSBE01.gct': " + gctExc.Message, gctExc);
                }
            }
        }