From f3c65674fb63cd568a94ba7ca776eb964507ce93 Mon Sep 17 00:00:00 2001
From: Joseph <108951296+Josephfallen@users.noreply.github.com>
Date: Fri, 23 May 2025 04:51:40 -0400
Subject: [PATCH 1/2] Added a Loader Message
---
RepoAntiCheat/LoaderMessage.cs | 44 ++++++++++++++++++++++++++++++++++
RepoAntiCheat/RepoAntiCheat.cs | 2 ++
2 files changed, 46 insertions(+)
create mode 100644 RepoAntiCheat/LoaderMessage.cs
diff --git a/RepoAntiCheat/LoaderMessage.cs b/RepoAntiCheat/LoaderMessage.cs
new file mode 100644
index 0000000..d40d5e7
--- /dev/null
+++ b/RepoAntiCheat/LoaderMessage.cs
@@ -0,0 +1,44 @@
+using System;
+using System.Linq;
+
+namespace RepoAntiCheat
+{
+
+ public static class LoaderMessages
+ {
+ ///
+ /// Gets the default loader message.
+ ///
+ public static string Default => @"
+
+
+ /$$$$$$$ /$$$$$$ /$$$$$$
+| $$__ $$ /$$__ $$ /$$__ $$
+| $$ \ $$| $$ \ $$| $$ \__/
+| $$$$$$$/| $$$$$$$$| $$ By Charlese2
+| $$__ $$| $$__ $$| $$
+| $$ \ $$| $$ | $$| $$ $$
+| $$ | $$| $$ | $$| $$$$$$/
+|__/ |__/|__/ |__/ \______/
+
+
+
+";
+
+
+ ///
+ /// Gets the loader message according to the current month and flags.
+ ///
+ /// The corresponding loader message.
+ public static string GetMessage()
+ {
+ var args = Environment.GetCommandLineArgs();
+
+ if (args.Contains("--defaultloadmessage"))
+ return Default;
+
+
+ return Default;
+ }
+ }
+}
diff --git a/RepoAntiCheat/RepoAntiCheat.cs b/RepoAntiCheat/RepoAntiCheat.cs
index 2947fee..99a5a89 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());
+
Log.LogDebug("Patching...");
Harmony.PatchAll();
From a6c3613bc292e209c6171cb6a2ed4cc1464f062d Mon Sep 17 00:00:00 2001
From: Joseph <108951296+Josephfallen@users.noreply.github.com>
Date: Fri, 23 May 2025 05:00:51 -0400
Subject: [PATCH 2/2] Updated to have Seasonal Themes
---
RepoAntiCheat/LoaderMessage.cs | 50 ++++++++++++++++++++++++++++++----
RepoAntiCheat/RepoAntiCheat.cs | 2 +-
2 files changed, 46 insertions(+), 6 deletions(-)
diff --git a/RepoAntiCheat/LoaderMessage.cs b/RepoAntiCheat/LoaderMessage.cs
index d40d5e7..1bd91c1 100644
--- a/RepoAntiCheat/LoaderMessage.cs
+++ b/RepoAntiCheat/LoaderMessage.cs
@@ -3,11 +3,10 @@
namespace RepoAntiCheat
{
-
public static class LoaderMessages
{
///
- /// Gets the default loader message.
+ /// Default loader message.
///
public static string Default => @"
@@ -25,11 +24,46 @@ public static class LoaderMessages
";
+ private static string Halloween => @"
+
+
+
+
+ ██▀███ ▄▄▄ ▄████▄
+▓██ ▒ ██▒▒████▄ ▒██▀ ▀█
+▓██ ░▄█ ▒▒██ ▀█▄ ▒▓█ ▄
+▒██▀▀█▄ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒ By Charlese2
+░██▓ ▒██▒ ▓█ ▓██▒▒ ▓███▀ ░
+░ ▒▓ ░▒▓░ ▒▒ ▓▒█░░ ░▒ ▒ ░
+ ░▒ ░ ▒░ ▒ ▒▒ ░ ░ ▒
+ ░░ ░ ░ ▒ ░
+ ░ ░ ░░ ░
+ ░
+
+
+
+";
+
+ private static string Christmas => @"
+
+
+ * * * * * * *
+ * 🎄 Merry Christmas from RepoAntiCheat 🎄 *
+ * * * * * * * *
+
+ /$$$$$$$ /$$$$$$ /$$$$$$
+ | $$__ $$ /$$__ $$ /$$__ $$
+ | $$ \ $$| $$ \ $$| $$ \__/
+ | $$$$$$$/| $$$$$$$$| $$ By Charlese2
+ | $$__ $$| $$__ $$| $$
+ | $$ \ $$| $$ | $$| $$ $$
+ | $$ | $$| $$ | $$| $$$$$$/
+ |__/ |__/|__/ |__/ \______/
+";
///
- /// Gets the loader message according to the current month and flags.
+ /// Gets the loader message based on current month and command-line args.
///
- /// The corresponding loader message.
public static string GetMessage()
{
var args = Environment.GetCommandLineArgs();
@@ -37,8 +71,14 @@ public static string GetMessage()
if (args.Contains("--defaultloadmessage"))
return Default;
+ int month = DateTime.Now.Month;
- return Default;
+ return month switch
+ {
+ 10 => Halloween, // October
+ 12 => Christmas, // December
+ _ => Default
+ };
}
}
}
diff --git a/RepoAntiCheat/RepoAntiCheat.cs b/RepoAntiCheat/RepoAntiCheat.cs
index 99a5a89..1bd8382 100644
--- a/RepoAntiCheat/RepoAntiCheat.cs
+++ b/RepoAntiCheat/RepoAntiCheat.cs
@@ -65,7 +65,7 @@ internal static void Patch()
{
Harmony ??= new Harmony(MyPluginInfo.PLUGIN_GUID);
- Log.LogInfo(LoaderMessages.GetMessage());
+ Log.LogInfo(LoaderMessages.GetMessage()); // Displays a cool loader message upon patching
Log.LogDebug("Patching...");