/// <summary> /// Processes the INI file, applying any changes. /// </summary> static void ProcessINI() { var ini = new IniManager(IniFile) { ReturnDefaultIfEmpty = true }; ini.Load(); if (ini.Contains(IniSectionLauncher)) { // Fallout Launcher PathLauncher = ini.GetString(IniSectionLauncher, IniKeyPath, PathLauncher); ArgumentsLauncher = ini.GetString(IniSectionLauncher, IniKeyArguments, ArgumentsLauncher); } if (ini.Contains(IniSectionFOSE)) { // FOSE PathFOSE = ini.GetString(IniSectionFOSE, IniKeyPath, PathFOSE); ArgumentsFOSE = ini.GetString(IniSectionFOSE, IniKeyArguments, ArgumentsFOSE); } if (ini.Contains(IniSectionMO)) { // Mod Organizer PathModOrganizer = ini.GetString(IniSectionMO, IniKeyPath, PathModOrganizer); ArgumentsModOrganizer = ini.GetString(IniSectionMO, IniKeyArguments, ArgumentsModOrganizer); } if (ini.Contains(IniSectionCustom)) { // Custom NameCustom = ini.GetString(IniSectionCustom, IniKeyName, NameCustom); PathCustom = ini.GetString(IniSectionCustom, IniKeyPath, PathCustom); ArgumentsCustom = ini.GetString(IniSectionCustom, IniKeyArguments, ArgumentsCustom); } }