Exemple #1
0
        //private bool already_setup = false;
        public void setup()
        {
            handlers = new Dictionary <HandlerType, ALocationHandler>();

            TranslatingProgressHandler.setTranslatedMessage("DetectingSystemPaths");
            ASystemLocationHandler system_handler = this.setupSystemHandler();

            handlers.Add(HandlerType.System, system_handler);

            TranslatingProgressHandler.setTranslatedMessage("DetectingSteam");
            ASteamLocationHandler steam_handler = this.setupSteamHandler();

            handlers.Add(HandlerType.Steam, steam_handler);
            steam = steam_handler;

            TranslatingProgressHandler.setTranslatedMessage("DetectingPlayStation");
            APlaystationLocationHandler playstation_handler = this.setupPlaystationHandler();

            ps = playstation_handler;
            handlers.Add(HandlerType.PlayStation, playstation_handler);

            TranslatingProgressHandler.setTranslatedMessage("DetectingScummVM");
            AScummVMLocationHandler scummvm_handler = this.setupScummVMHandler();

            handlers.Add(HandlerType.ScummVM, scummvm_handler);
        }
Exemple #2
0
        protected override Dictionary <string, FileInfo> collectConfigFiles()
        {
            Dictionary <string, FileInfo> files   = new Dictionary <string, FileInfo>();
            ASystemLocationHandler        handler = Core.locations.getHandler(HandlerType.System) as ASystemLocationHandler;

            foreach (UserData user in handler)
            {
                if (user.hasFolderFor(EnvironmentVariable.AppData))
                {
                    FileInfo file = new FileInfo(
                        Path.Combine(user.getFolder(EnvironmentVariable.AppData).BaseFolder,
                                     Path.Combine("ScummVM", "scummvm.ini")));
                    if (file.Exists)
                    {
                        files.Add(user.name, file);
                    }
                }
            }
            return(files);
        }