public static void WriteConfig(string mode)
{
StringBuilder sb = new StringBuilder();
sb.AppendLine("//Lines started with // are comments.");
sb.AppendLine(Environment.NewLine);
sb.AppendLine("//Mode: (Available options: A, B)");
sb.AppendLine($"Mode={mode}");
File.WriteAllText(ConfigPath, sb.ToString());
}
Life saver I luv you! My mod's having the exact issue: crash upon launching. Now it's fixed!
Thanks for sharing this information.
Yep. Saw that in the documentation. That was solved.