Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();
            string baseFolder = AppDomain.CurrentDomain.BaseDirectory;
            logger.setLogfile(System.IO.Path.Combine(baseFolder, "configurator.log"));
            settings = new storage(System.IO.Path.Combine(baseFolder, "configurator.ini"));
            String oldSettings = System.IO.Path.Combine(baseFolder, "games.txt");
            if (System.IO.File.Exists(oldSettings)) {
                settings.loadGamesFromFile(oldSettings);
                settings.saveSettings();
                System.IO.File.Delete(oldSettings);
            }
            refreshUI();

            versionInfo.Text = "SweetFX Configurator v"+ VERSION;

            sweetfx_folder = System.IO.Path.Combine(baseFolder, sweetfxFolderName);
        }