/// <summary> /// Initializes important variables /// </summary> public void InitBasics() { String dataPath = Path.Combine(PathHelper.DataDir, "ResourcePRJ"); if (!Directory.Exists(dataPath)) { Directory.CreateDirectory(dataPath); } this.settingFilename = Path.Combine(dataPath, "Settings.fdb"); ProjectCreator.AppendProjectType("project.as3rsx", typeof(RSXProject)); }
/// <summary> /// Loads the plugin settings /// </summary> public void LoadSettings() { settingObject = new LoomSettings(); if (!File.Exists(this.settingFilename)) { this.SaveSettings(); } else { Object obj = ObjectSerializer.Deserialize(this.settingFilename, settingObject); settingObject = (LoomSettings)obj; } ProjectCreator.AppendProjectType("project.lsproj", typeof(LoomProject)); }