Ejemplo n.º 1
0
        public WiiConfig(GameConfig c)
        {
            InitializeComponent();
            mvm = FindResource("mvm") as MainViewModel;
            getInfoFromConfig();
            mvm.GameConfiguration = c.Clone();
            mvm.setThing(this);
            Injection.ToolTip = "Changing the extension of a ROM may result in a faulty inject.\nWe will not give any support in such cases";
            List <string> gpEmu = new List <string>();

            gpEmu.Add("Do not use. WiiMotes only");
            gpEmu.Add("Classic Controller");
            gpEmu.Add("Horizontal WiiMote");
            gpEmu.Add("Vertical WiiMote");
            gpEmu.Add("Force Classic Controller");
            gpEmu.Add("Force No Classic Controller");
            gamepad.ItemsSource   = gpEmu;
            gamepad.SelectedIndex = 0;
            mvm.test = GameBaseClassLibrary.GameConsoles.WII;
            List <string> selection = new List <string>();

            selection.Add("Video Patches");
            selection.Add("Region Patches");
            selection.Add("Extras");
            selectionDB.ItemsSource   = selection;
            selectionDB.SelectedIndex = 0;
        }
Ejemplo n.º 2
0
 public GBA(GameConfig c)
 {
     InitializeComponent();
     mvm = FindResource("mvm") as MainViewModel;
     mvm.GameConfiguration = c.Clone(); getInfoFromConfig();
     mvm.setThing(this);
     Injection.ToolTip = "Changing the extension of a ROM may result in a faulty inject.\nWe will not give any support in such cases";
 }
Ejemplo n.º 3
0
 public OtherConfigs(GameConfig c)
 {
     InitializeComponent();
     mvm = FindResource("mvm") as MainViewModel;
     mvm.GameConfiguration = c.Clone(); getInfoFromConfig();
     mvm.setThing(this);
     Injection.ToolTip = "Changing the extension of a ROM may result in a faulty inject.\nWe will not give any support in such cases";
     sound.ToolTip    += "\nWill be cut to 6 seconds of Length";
     if (mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.NES || mvm.GameConfiguration.Console == GameBaseClassLibrary.GameConsoles.SNES)
     {
         snesnes.Visibility = Visibility.Visible;
     }
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Performs a deep copy of this game instance and returns the result.
        /// </summary>
        /// <returns></returns>
        public Game Clone(bool logging = false)
        {
            var gameConfig = _gameConfig.Clone();

            gameConfig.Logging = logging;
            var game = new Game(gameConfig, false)
            {
                CloneIndex = $"{this.CloneIndex}[{NextCloneIndex++}]"
            };

            game.Player1.Stamp(Player1);
            game.Player2.Stamp(Player2);
            game.Stamp(this);

            game.TaskStack.Stamp(TaskStack);
            game.TaskQueue.Stamp(TaskQueue);

            // set indexer to avoid conflicts ...
            game.SetIndexer(_idIndex, _oopIndex);

            return(game);
        }