Ejemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();

            CurrentProfile = SRTProfile.FromFile(DEFAULT_PROFILE_PATH);

            InitializeGame();
            InitializeConfig();
            InitializeCustom();
            InitializeSkybox();
            Initialize();
        }
Ejemplo n.º 2
0
 public static SRTProfile FromFile(string fileName)
 {
     SRTProfile result = new SRTProfile();
     result.Load(fileName);
     return result;
 }
        private static void Initialize()
        {
            profile = MainForm.CurrentProfile;
            game = SRTGame.AllGames[profile.GameIndex];
            skybox = SRTSkybox.FindSkyboxByName(profile.Skyname);

            addons = game.ShortNamePath + "\\addons";
            cfg = game.ShortNamePath + "\\cfg";
            custom = game.ShortNamePath + "\\custom";
        }