diff --git a/RepoAntiCheat/LoaderMessage.cs b/RepoAntiCheat/LoaderMessage.cs new file mode 100644 index 0000000..1bd91c1 --- /dev/null +++ b/RepoAntiCheat/LoaderMessage.cs @@ -0,0 +1,84 @@ +using System; +using System.Linq; + +namespace RepoAntiCheat +{ + public static class LoaderMessages + { + /// + /// Default loader message. + /// + public static string Default => @" + + + /$$$$$$$ /$$$$$$ /$$$$$$ +| $$__ $$ /$$__ $$ /$$__ $$ +| $$ \ $$| $$ \ $$| $$ \__/ +| $$$$$$$/| $$$$$$$$| $$ By Charlese2 +| $$__ $$| $$__ $$| $$ +| $$ \ $$| $$ | $$| $$ $$ +| $$ | $$| $$ | $$| $$$$$$/ +|__/ |__/|__/ |__/ \______/ + + + +"; + + private static string Halloween => @" + + + + + ██▀███ ▄▄▄ ▄████▄ +▓██ ▒ ██▒▒████▄ ▒██▀ ▀█ +▓██ ░▄█ ▒▒██ ▀█▄ ▒▓█ ▄ +▒██▀▀█▄ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒ By Charlese2 +░██▓ ▒██▒ ▓█ ▓██▒▒ ▓███▀ ░ +░ ▒▓ ░▒▓░ ▒▒ ▓▒█░░ ░▒ ▒ ░ + ░▒ ░ ▒░ ▒ ▒▒ ░ ░ ▒ + ░░ ░ ░ ▒ ░ + ░ ░ ░░ ░ + ░ + + + +"; + + private static string Christmas => @" + + + * * * * * * * + * 🎄 Merry Christmas from RepoAntiCheat 🎄 * + * * * * * * * * + + /$$$$$$$ /$$$$$$ /$$$$$$ + | $$__ $$ /$$__ $$ /$$__ $$ + | $$ \ $$| $$ \ $$| $$ \__/ + | $$$$$$$/| $$$$$$$$| $$ By Charlese2 + | $$__ $$| $$__ $$| $$ + | $$ \ $$| $$ | $$| $$ $$ + | $$ | $$| $$ | $$| $$$$$$/ + |__/ |__/|__/ |__/ \______/ +"; + + /// + /// Gets the loader message based on current month and command-line args. + /// + public static string GetMessage() + { + var args = Environment.GetCommandLineArgs(); + + if (args.Contains("--defaultloadmessage")) + return Default; + + int month = DateTime.Now.Month; + + return month switch + { + 10 => Halloween, // October + 12 => Christmas, // December + _ => Default + }; + } + } +} diff --git a/RepoAntiCheat/RepoAntiCheat.cs b/RepoAntiCheat/RepoAntiCheat.cs index 2947fee..1bd8382 100644 --- a/RepoAntiCheat/RepoAntiCheat.cs +++ b/RepoAntiCheat/RepoAntiCheat.cs @@ -65,6 +65,8 @@ internal static void Patch() { Harmony ??= new Harmony(MyPluginInfo.PLUGIN_GUID); + Log.LogInfo(LoaderMessages.GetMessage()); // Displays a cool loader message upon patching + Log.LogDebug("Patching..."); Harmony.PatchAll();