[READ-ONLY] Mirror of https://github.com/jackmawer/ServoUtility. Servo Utility, formally WhiteRose, is a cross-platform .NET library to build FreeSO update and launcher utilities.
0

Configure Feed

Select the types of activity you want to include in your feed.

Allow for runtime configuration

Runtime configuration can now be done using the Configure class.

Tomas (Oct 13, 2016, 7:55 PM EDT) 27eb3d29 6054e83a

+71 -6
+62
WhiteRose/Configure.cs
··· 1 + // This software is under the public domain. See the UNLICENSE file for more details. 2 + 3 + namespace WhiteRose 4 + { 5 + /// <summary> 6 + /// Runtime configuration to access different clients, IDEs, or simply 7 + /// change varies properties of the game 8 + /// </summary> 9 + public class Configure 10 + { 11 + 12 + /// <summary> 13 + /// Changes client and ide locations as well their settings. 14 + /// Recommended for migration purposes only. 15 + /// </summary> 16 + /// <param name="client"></param> 17 + /// <param name="ide"></param> 18 + /// <param name="args"></param> 19 + public static void changeAll(string client, string ide, string args) 20 + { 21 + Properties.Settings.Default.Client = client; 22 + Properties.Settings.Default.IDE = ide; 23 + Properties.Settings.Default.Args = args; 24 + } 25 + 26 + public static void resetAll() 27 + { 28 + Properties.Settings.Default.Client = "FreeSO.exe"; 29 + Properties.Settings.Default.IDE = "FSO.IDE.exe"; 30 + Properties.Settings.Default.Args = "800x600 w"; 31 + } 32 + 33 + /// <summary> 34 + /// Changes client and ide locations. 35 + /// Recommended for migration purposes only. 36 + /// </summary> 37 + /// <param name="client"></param> 38 + /// <param name="ide"></param> 39 + /// <param name="args"></param> 40 + public static void changeClientIDE(string client, string ide) 41 + { 42 + Properties.Settings.Default.Client = client; 43 + Properties.Settings.Default.IDE = ide; 44 + } 45 + 46 + 47 + public static void changeClient(string client) 48 + { 49 + Properties.Settings.Default.Client = client; 50 + } 51 + 52 + public static void changeIDE(string ide) 53 + { 54 + Properties.Settings.Default.IDE = ide; 55 + } 56 + 57 + public static void changeArgs(string args) 58 + { 59 + Properties.Settings.Default.Args = args; 60 + } 61 + } 62 + }
+8 -6
WhiteRose/FSO.cs
··· 15 15 { 16 16 public static class FSO 17 17 { 18 - 18 + [Obsolete] 19 19 public static string[] fsoParmas { get; set; } 20 20 21 21 public static string libVer = "WhiteRose " + Assembly.GetExecutingAssembly().GetName().Version.ToString(); ··· 78 78 } 79 79 80 80 /// <summary> 81 - /// Launches the FreeSO executable with the specified 81 + /// Launches the FreeSO IDE executable with the specified 82 82 /// game arguments defined in the application settings. 83 83 /// 84 84 /// Defualt settings: FSO.IDE.exe must be located in same 85 - /// directory and the game arguments are "800x600 w" 85 + /// directory and the game arguments are "800x600 w". 86 + /// 87 + /// To allow changes for these settings, use the Configure class. 86 88 /// </summary> 87 - /// <param name="args"></param> 88 89 public static void StartFSO() 89 90 { 90 91 var fso = Properties.Settings.Default.Client; ··· 107 108 /// game arguments defined in the application settings. 108 109 /// 109 110 /// Defualt settings: FSO.IDE.exe must be located in same 110 - /// directory and the game arguments are "800x600 w" 111 + /// directory and the game arguments are "800x600 w". 112 + /// 113 + /// To allow changes for these settings, use the Configure class. 111 114 /// </summary> 112 - /// <param name="args"></param> 113 115 public static void StartIDE() 114 116 { 115 117 var ide = Properties.Settings.Default.IDE;
+1
WhiteRose/WhiteRose.csproj
··· 37 37 <Reference Include="System.Net.Http" /> 38 38 </ItemGroup> 39 39 <ItemGroup> 40 + <Compile Include="Configure.cs" /> 40 41 <Compile Include="Properties\AssemblyInfo.cs" /> 41 42 <Compile Include="FSO.cs" /> 42 43 <Compile Include="Properties\Settings.Designer.cs">