Exemple #1
0
        private void AddLauncher(object param)
        {
            LauncherVM l = new LauncherVM();

            l.Name = param as String;
            NotifyPropertyChanged("LauncherCollection");
            ConfFileSaver saver = new ConfFileSaver();

            //todo change path
            if (!File.Exists(RetroFE.GetAbsolutePath() + "/Launchers/" + l.Name + ".conf"))
            {
                LauncherCollection.Add(l);
                saver.Save(RetroFE.GetAbsolutePath() + "/Launchers/" + l.Name + ".conf");
            }
        }
Exemple #2
0
        public void Save(LauncherVM launcher)
        {
            if (launcher == null)
            {
                return;
            }

            ConfFileSaver s = new ConfFileSaver();

            s.AddOption("executable", launcher.ExecutablePath);
            s.AddOption("arguments", launcher.Arguments);

            //todo: change location
            string path = RetroFE.GetAbsolutePath() + "/Launchers/" + SelectedLauncher.Name + ".conf";

            s.Save(path);
        }