Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions RepoAntiCheat/LoaderMessage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
using System;
using System.Linq;

namespace RepoAntiCheat
{
public static class LoaderMessages
{
/// <summary>
/// Default loader message.
/// </summary>
public static string Default => @"


/$$$$$$$ /$$$$$$ /$$$$$$
| $$__ $$ /$$__ $$ /$$__ $$
| $$ \ $$| $$ \ $$| $$ \__/
| $$$$$$$/| $$$$$$$$| $$ By Charlese2
| $$__ $$| $$__ $$| $$
| $$ \ $$| $$ | $$| $$ $$
| $$ | $$| $$ | $$| $$$$$$/
|__/ |__/|__/ |__/ \______/



";

private static string Halloween => @"




██▀███ ▄▄▄ ▄████▄
▓██ ▒ ██▒▒████▄ ▒██▀ ▀█
▓██ ░▄█ ▒▒██ ▀█▄ ▒▓█ ▄
▒██▀▀█▄ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒ By Charlese2
░██▓ ▒██▒ ▓█ ▓██▒▒ ▓███▀ ░
░ ▒▓ ░▒▓░ ▒▒ ▓▒█░░ ░▒ ▒ ░
░▒ ░ ▒░ ▒ ▒▒ ░ ░ ▒
░░ ░ ░ ▒ ░
░ ░ ░░ ░



";

private static string Christmas => @"


* * * * * * *
* 🎄 Merry Christmas from RepoAntiCheat 🎄 *
* * * * * * * *

/$$$$$$$ /$$$$$$ /$$$$$$
| $$__ $$ /$$__ $$ /$$__ $$
| $$ \ $$| $$ \ $$| $$ \__/
| $$$$$$$/| $$$$$$$$| $$ By Charlese2
| $$__ $$| $$__ $$| $$
| $$ \ $$| $$ | $$| $$ $$
| $$ | $$| $$ | $$| $$$$$$/
|__/ |__/|__/ |__/ \______/
";

/// <summary>
/// Gets the loader message based on current month and command-line args.
/// </summary>
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
};
}
}
}
2 changes: 2 additions & 0 deletions RepoAntiCheat/RepoAntiCheat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down