Select the types of activity you want to include in your feed.
[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.
···11+// This software is under the public domain. See the UNLICENSE file for more details.
22+33+namespace WhiteRose
44+{
55+ /// <summary>
66+ /// Runtime configuration to access different clients, IDEs, or simply
77+ /// change varies properties of the game
88+ /// </summary>
99+ public class Configure
1010+ {
1111+1212+ /// <summary>
1313+ /// Changes client and ide locations as well their settings.
1414+ /// Recommended for migration purposes only.
1515+ /// </summary>
1616+ /// <param name="client"></param>
1717+ /// <param name="ide"></param>
1818+ /// <param name="args"></param>
1919+ public static void changeAll(string client, string ide, string args)
2020+ {
2121+ Properties.Settings.Default.Client = client;
2222+ Properties.Settings.Default.IDE = ide;
2323+ Properties.Settings.Default.Args = args;
2424+ }
2525+2626+ public static void resetAll()
2727+ {
2828+ Properties.Settings.Default.Client = "FreeSO.exe";
2929+ Properties.Settings.Default.IDE = "FSO.IDE.exe";
3030+ Properties.Settings.Default.Args = "800x600 w";
3131+ }
3232+3333+ /// <summary>
3434+ /// Changes client and ide locations.
3535+ /// Recommended for migration purposes only.
3636+ /// </summary>
3737+ /// <param name="client"></param>
3838+ /// <param name="ide"></param>
3939+ /// <param name="args"></param>
4040+ public static void changeClientIDE(string client, string ide)
4141+ {
4242+ Properties.Settings.Default.Client = client;
4343+ Properties.Settings.Default.IDE = ide;
4444+ }
4545+4646+4747+ public static void changeClient(string client)
4848+ {
4949+ Properties.Settings.Default.Client = client;
5050+ }
5151+5252+ public static void changeIDE(string ide)
5353+ {
5454+ Properties.Settings.Default.IDE = ide;
5555+ }
5656+5757+ public static void changeArgs(string args)
5858+ {
5959+ Properties.Settings.Default.Args = args;
6060+ }
6161+ }
6262+}
+8-6
WhiteRose/FSO.cs
···1515{
1616 public static class FSO
1717 {
1818-1818+ [Obsolete]
1919 public static string[] fsoParmas { get; set; }
20202121 public static string libVer = "WhiteRose " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
···7878 }
79798080 /// <summary>
8181- /// Launches the FreeSO executable with the specified
8181+ /// Launches the FreeSO IDE executable with the specified
8282 /// game arguments defined in the application settings.
8383 ///
8484 /// Defualt settings: FSO.IDE.exe must be located in same
8585- /// directory and the game arguments are "800x600 w"
8585+ /// directory and the game arguments are "800x600 w".
8686+ ///
8787+ /// To allow changes for these settings, use the Configure class.
8688 /// </summary>
8787- /// <param name="args"></param>
8889 public static void StartFSO()
8990 {
9091 var fso = Properties.Settings.Default.Client;
···107108 /// game arguments defined in the application settings.
108109 ///
109110 /// Defualt settings: FSO.IDE.exe must be located in same
110110- /// directory and the game arguments are "800x600 w"
111111+ /// directory and the game arguments are "800x600 w".
112112+ ///
113113+ /// To allow changes for these settings, use the Configure class.
111114 /// </summary>
112112- /// <param name="args"></param>
113115 public static void StartIDE()
114116 {
115117 var ide = Properties.Settings.Default.IDE;