if (prefsDialog.midiPlatform!=1) return true;
if (appConfig.getMidiPlatform()!=1) return true;
    boolean loadMidiDriver ()    {                if (prefsDialog.initPortIn<0) prefsDialog.initPortIn=0;        if (prefsDialog.initPortOut<0) prefsDialog.initPortOut=0;        if (prefsDialog.faderPort<0) prefsDialog.faderPort=0;        if (prefsDialog.masterController<0) prefsDialog.masterController=0;                        try        {            switch (prefsDialog.midiPlatform)            {                case 0: MidiOut=new DoNothingMidiWrapper (0,0); break;                case 2: MidiOut=new WireMidiWrapper (prefsDialog.initPortIn,prefsDialog.initPortOut); break;                case 3: MidiOut=new LinuxMidiWrapper (prefsDialog.initPortIn,prefsDialog.initPortOut); break;//                case 4: MidiOut=new MacOSXMidiWrapper (prefsDialog.initPortIn,prefsDialog.initPortOut); break;            }            MidiIn=MidiOut;        } catch (Exception e)        {            e.printStackTrace ();            return false;                    }        if (prefsDialog.midiPlatform!=1) return true;                // Ugly Special Case code for Initializing JavaMIDI, which is very picky about initializing.                try        {            MidiOut=new  JavaMidiWrapper (prefsDialog.initPortIn,prefsDialog.initPortOut);            currentPort=prefsDialog.initPortOut;        }        catch (Exception e6)        {            ErrorMsg.reportError ("Error!","Unable to Initialize MIDI IN/OUT! \nMidi Transfer will be unavailable this session.\nChange the Initialization Port Settings under Preferences and restart.",e6);            try            {                prefsDialog.faderPort=1;                MidiOut=new JavaMidiWrapper (1,1);                currentPort=1;            }            catch (Exception e7)            {                try                {prefsDialog.faderPort=2;MidiOut=new                 JavaMidiWrapper (2,2);currentPort=2; } catch (Exception e8)                 {                     try                     {prefsDialog.faderPort=3;MidiOut=new                      JavaMidiWrapper (4,4);currentPort=3; } catch (Exception e9)                      {                          try                          {prefsDialog.faderPort=3;MidiOut=new                           JavaMidiWrapper (5,5);currentPort=3; } catch (Exception e10)                           {                               try                               {prefsDialog.faderPort=3;MidiOut=new                                JavaMidiWrapper (6,6);currentPort=3; } catch (Exception e11)                                {                                    try                                    {prefsDialog.faderPort=3;MidiOut=new                                     JavaMidiWrapper (7,7);currentPort=3; } catch (Exception e12)                                     {                                     }}}}}}                                             }        return true;    }