예제 #1
0
        /// <summary>
        /// Load the default DosBox configuration
        /// </summary>
        /// <returns>DosBoxConfiguration data</returns>
        public DosBoxConfiguration LoadDeafult()
        {
            SDL.AddAutoLock()
            .AddFullDouble()
            .AddFullResolution(Resolution.Original)
            .AddFullScreen()
            .AddOutput(VideoOutput.Surface)
            .AddPriorityFocused()
            .AddPriorityMinimized()
            .AddSensitivity()
            .AddUseScanCodes()
            .AddWaitOnError()
            .AddWindowResolution(Resolution.Original);

            DosBox.AddCaptures()
            .AddMachine()
            .AddMemSize();

            Render.AddAspect()
            .AddFrameskip()
            .AddScaler(ScalerType.Normal2x);

            CPU.AddCore()
            .AddCPUType()
            .AddCycles(new CPUCycles("auto"))
            .AddCycleUp()
            .AddCycleDown();

            Mixer.AddNoSound()
            .AddRate()
            .AddBlockSize()
            .AddPreBuffer();

            Midi.AddMPU401()
            .AddMidiDevice();

            SoundBlaster.AddSBType()
            .AddSBBase()
            .AddIRQ()
            .AddDMA()
            .AddHDMA()
            .AddSoundMixer()
            .AddOplMode()
            .AddOplEmu()
            .AddOplRate();

            GUS.AddGUS()
            .AddGusRate()
            .AddGusBase()
            .AddGusIRQ()
            .AddGusDMA()
            .AddUltraDir();

            Speaker.AddPCSpeaker()
            .AddPCRate()
            .AddTandy()
            .AddTandyRate()
            .AddDisney();

            Joystick.AddJoystickType()
            .AddTimed()
            .AddAutoFire()
            .AddSwap34()
            .AddButtonWrap();

            Serial.AddSerial1(Options.Serial.CreateDummy())
            .AddSerial2(Options.Serial.CreateDummy())
            .AddSerial3(Options.Serial.CreateDisabled())
            .AddSerial4(Options.Serial.CreateDisabled());

            DOS.AddXMS()
            .AddEMS()
            .AddUMB()
            .AddKeyboardLayout(KeyboardLayout.Auto);

            IPX.AddIPX();

            return(this);
        }