mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
Resolves #399
Added obvious ascii art and a friendly message whenever a local config is present.
This commit is contained in:
@@ -12,8 +12,27 @@ namespace PepperDash.Essentials.Core.Config
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Loads the ConfigObject from the file
|
/// Loads the ConfigObject from the file
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ConfigReader
|
public class ConfigReader
|
||||||
{
|
{
|
||||||
|
public const string LocalConfigPresent =
|
||||||
|
@"
|
||||||
|
_ _ _____ __ _
|
||||||
|
| | | | / __ \ / _(_)
|
||||||
|
| | ___ ___ __ _| | | / \/ ___ _ __ | |_ _ __ _
|
||||||
|
| | / _ \ / __/ _` | | | | / _ \| '_ \| _| |/ _` |
|
||||||
|
| |___| (_) | (_| (_| | | | \__/\ (_) | | | | | | | (_| |
|
||||||
|
\_____/\___/ \___\__,_|_| \____/\___/|_| |_|_| |_|\__, |
|
||||||
|
__/ |
|
||||||
|
|___/
|
||||||
|
______ _ _ _ _
|
||||||
|
| ___ \ | | | | | |
|
||||||
|
| |_/ / __ ___ ___ ___ _ __ | |_ | | | |
|
||||||
|
| __/ '__/ _ \/ __|/ _ \ '_ \| __| | | | |
|
||||||
|
| | | | | __/\__ \ __/ | | | |_ |_|_|_|
|
||||||
|
\_| |_| \___||___/\___|_| |_|\__| (_|_|_)
|
||||||
|
|
||||||
|
";
|
||||||
|
|
||||||
public static EssentialsConfig ConfigObject { get; private set; }
|
public static EssentialsConfig ConfigObject { get; private set; }
|
||||||
|
|
||||||
public static bool LoadConfig2()
|
public static bool LoadConfig2()
|
||||||
@@ -44,6 +63,8 @@ namespace PepperDash.Essentials.Core.Config
|
|||||||
{
|
{
|
||||||
localConfigFound = true;
|
localConfigFound = true;
|
||||||
Debug.Console(0, Debug.ErrorLogLevel.Notice, "Found Local config file: '{0}'", filePath);
|
Debug.Console(0, Debug.ErrorLogLevel.Notice, "Found Local config file: '{0}'", filePath);
|
||||||
|
Debug.Console(0, LocalConfigPresent);
|
||||||
|
Debug.Console(0, "Local config files are valid, but be sure this is your intention. Spinning your wheels chasing down a configuration issue is not fun!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user