Exemplo n.º 1
0
        static public void ApplyConfig()
        {
            EmulationInfo emulationInfo = ConfigManager.Config.EmulationInfo;

            InteropEmu.SetEmulationSpeed(emulationInfo.EmulationSpeed);
            InteropEmu.SetTurboRewindSpeed(emulationInfo.TurboSpeed, emulationInfo.RewindSpeed);

            InteropEmu.SetFlag(EmulationFlags.Mmc3IrqAltBehavior, emulationInfo.UseAlternativeMmc3Irq);
            InteropEmu.SetFlag(EmulationFlags.AllowInvalidInput, emulationInfo.AllowInvalidInput);
            InteropEmu.SetFlag(EmulationFlags.ShowLagCounter, emulationInfo.ShowLagCounter);
            InteropEmu.SetFlag(EmulationFlags.DisablePpu2004Reads, emulationInfo.DisablePpu2004Reads);
            InteropEmu.SetFlag(EmulationFlags.DisablePaletteRead, emulationInfo.DisablePaletteRead);
            InteropEmu.SetFlag(EmulationFlags.DisableOamAddrBug, emulationInfo.DisableOamAddrBug);
            InteropEmu.SetFlag(EmulationFlags.DisablePpuReset, emulationInfo.DisablePpuReset);
            InteropEmu.SetFlag(EmulationFlags.EnableOamDecay, emulationInfo.EnableOamDecay);
            InteropEmu.SetFlag(EmulationFlags.UseNes101Hvc101Behavior, emulationInfo.UseNes101Hvc101Behavior);
            InteropEmu.SetFlag(EmulationFlags.RandomizeMapperPowerOnState, emulationInfo.EnableMapperRandomPowerOnState);
            InteropEmu.SetFlag(EmulationFlags.RandomizeCpuPpuAlignment, emulationInfo.RandomizeCpuPpuAlignment);
            InteropEmu.SetFlag(EmulationFlags.EnablePpu2000ScrollGlitch, emulationInfo.EnablePpu2000ScrollGlitch);
            InteropEmu.SetFlag(EmulationFlags.EnablePpu2006ScrollGlitch, emulationInfo.EnablePpu2006ScrollGlitch);

            InteropEmu.SetPpuNmiConfig(emulationInfo.PpuExtraScanlinesBeforeNmi, emulationInfo.PpuExtraScanlinesAfterNmi);

            InteropEmu.SetRamPowerOnState(emulationInfo.RamPowerOnState);
        }
Exemplo n.º 2
0
 public Configuration()
 {
     Profile = new PlayerProfile();
     ClientConnectionInfo = new ClientConnectionInfo();
     ServerInfo           = new ServerInfo();
     AudioInfo            = new AudioInfo();
     VideoInfo            = new VideoInfo();
     PreferenceInfo       = new PreferenceInfo();
     EmulationInfo        = new EmulationInfo();
     RecentFiles          = new List <RecentItem>();
     InputInfo            = new InputInfo();
     Cheats    = new List <CheatInfo>();
     VsConfig  = new List <VsConfigInfo>();
     DebugInfo = new DebugInfo();
 }
Exemplo n.º 3
0
        static public void ApplyConfig()
        {
            EmulationInfo emulationInfo = ConfigManager.Config.EmulationInfo;

            InteropEmu.SetEmulationSpeed(emulationInfo.EmulationSpeed);
            InteropEmu.SetTurboSpeed(emulationInfo.TurboSpeed);

            InteropEmu.SetFlag(EmulationFlags.Mmc3IrqAltBehavior, emulationInfo.UseAlternativeMmc3Irq);
            InteropEmu.SetFlag(EmulationFlags.AllowInvalidInput, emulationInfo.AllowInvalidInput);
            InteropEmu.SetFlag(EmulationFlags.RemoveSpriteLimit, emulationInfo.RemoveSpriteLimit);
            InteropEmu.SetFlag(EmulationFlags.ShowLagCounter, emulationInfo.ShowLagCounter);

            InteropEmu.SetOverclockRate(emulationInfo.OverclockRate, emulationInfo.OverclockAdjustApu);
            InteropEmu.SetPpuNmiConfig(emulationInfo.PpuExtraScanlinesBeforeNmi, emulationInfo.PpuExtraScanlinesAfterNmi);

            InteropEmu.SetRamPowerOnState(emulationInfo.RamPowerOnState);
        }
Exemplo n.º 4
0
 public Configuration()
 {
     Profile = new PlayerProfile();
     ClientConnectionInfo = new ClientConnectionInfo();
     ServerInfo           = new ServerInfo();
     AudioInfo            = new AudioInfo();
     VideoInfo            = new VideoInfo();
     PreferenceInfo       = new PreferenceInfo();
     EmulationInfo        = new EmulationInfo();
     RecentFiles          = new List <RecentItem>();
     InputInfo            = new InputInfo();
     Cheats               = new List <CheatInfo>();
     DebugInfo            = new DebugInfo();
     AviRecordInfo        = new AviRecordInfo();
     MovieRecordInfo      = new MovieRecordInfo();
     GameSpecificSettings = new List <GameSpecificInfo>();
 }
Exemplo n.º 5
0
        static public void ApplyConfig()
        {
            EmulationInfo emulationInfo = ConfigManager.Config.EmulationInfo;

            InteropEmu.SetEmulationSpeed(emulationInfo.EmulationSpeed);
            InteropEmu.SetTurboRewindSpeed(emulationInfo.TurboSpeed, emulationInfo.RewindSpeed);

            InteropEmu.SetFlag(EmulationFlags.Mmc3IrqAltBehavior, emulationInfo.UseAlternativeMmc3Irq);
            InteropEmu.SetFlag(EmulationFlags.AllowInvalidInput, emulationInfo.AllowInvalidInput);
            InteropEmu.SetFlag(EmulationFlags.RemoveSpriteLimit, emulationInfo.RemoveSpriteLimit);
            InteropEmu.SetFlag(EmulationFlags.AdaptiveSpriteLimit, emulationInfo.AdaptiveSpriteLimit);
            InteropEmu.SetFlag(EmulationFlags.ShowLagCounter, emulationInfo.ShowLagCounter);
            InteropEmu.SetFlag(EmulationFlags.DisablePpu2004Reads, emulationInfo.DisablePpu2004Reads);
            InteropEmu.SetFlag(EmulationFlags.DisablePaletteRead, emulationInfo.DisablePaletteRead);
            InteropEmu.SetFlag(EmulationFlags.DisableOamAddrBug, emulationInfo.DisableOamAddrBug);
            InteropEmu.SetFlag(EmulationFlags.DisablePpuReset, emulationInfo.DisablePpuReset);
            InteropEmu.SetFlag(EmulationFlags.EnableOamDecay, emulationInfo.EnableOamDecay);
            InteropEmu.SetFlag(EmulationFlags.UseNes101Hvc101Behavior, emulationInfo.UseNes101Hvc101Behavior);

            InteropEmu.SetOverclockRate(emulationInfo.OverclockRate, emulationInfo.OverclockAdjustApu);
            InteropEmu.SetPpuNmiConfig(emulationInfo.PpuExtraScanlinesBeforeNmi, emulationInfo.PpuExtraScanlinesAfterNmi);

            InteropEmu.SetRamPowerOnState(emulationInfo.RamPowerOnState);
        }