From b0f0d19268937d5901ddda03c543f48a2e003abf Mon Sep 17 00:00:00 2001
From: Az <56699741+AlchlcDvl@users.noreply.github.com>
Date: Wed, 11 Nov 2026 22:35:20 -0500
Subject: [PATCH 1/2] undo a single getter change
---
MiraAPI/Events/Vanilla/Meeting/Voting/DummyVoteEvent.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MiraAPI/Events/Vanilla/Meeting/Voting/DummyVoteEvent.cs b/MiraAPI/Events/Vanilla/Meeting/Voting/DummyVoteEvent.cs
index febf84cc..c9679a61 100644
--- a/MiraAPI/Events/Vanilla/Meeting/Voting/DummyVoteEvent.cs
+++ b/MiraAPI/Events/Vanilla/Meeting/Voting/DummyVoteEvent.cs
@@ -18,7 +18,7 @@ public class DummyVoteEvent(DummyBehaviour dummy) : MiraCancelableEvent
///
/// Gets the instance of the dummy's .
///
- public PlayerVoteData VoteData => dummy.myPlayer.GetVoteData();
+ public PlayerVoteData VoteData { get; } = dummy.myPlayer.GetVoteData();
///
/// Gets or sets a value indicating whether the dummy can vote to skip the meeting.
From bc1913e352975152b5c58cdfbc10ccfcde6fd65a Mon Sep 17 00:00:00 2001
From: Atony <75191600+AtonyGit@users.noreply.github.com>
Date: Wed, 11 Nov 2026 22:52:00 -0600
Subject: [PATCH 2/2] Add back role guide preloading
---
.../Patches/Hud/MatchInfoGuidePreloadPatch.cs | 22 +++++++++++++++++++
MiraAPI/Patches/RoleGuidePatches.cs | 10 +++++++++
2 files changed, 32 insertions(+)
create mode 100644 MiraAPI/Patches/Hud/MatchInfoGuidePreloadPatch.cs
diff --git a/MiraAPI/Patches/Hud/MatchInfoGuidePreloadPatch.cs b/MiraAPI/Patches/Hud/MatchInfoGuidePreloadPatch.cs
new file mode 100644
index 00000000..3c7d7763
--- /dev/null
+++ b/MiraAPI/Patches/Hud/MatchInfoGuidePreloadPatch.cs
@@ -0,0 +1,22 @@
+using HarmonyLib;
+
+namespace MiraAPI.Patches.Hud;
+
+///
+/// Preloads the Mira wiki/role guide panels when a game starts so opening the guide
+/// in-game does not cause a noticeable hitch.
+///
+[HarmonyPatch(typeof(ShipStatus), nameof(ShipStatus.Awake))]
+public static class MatchInfoGuidePreloadPatch
+{
+ public static void Postfix()
+ {
+ if (!MatchInfoGuide.Instance)
+ {
+ return;
+ }
+
+ Warning("Preloading Match Info Guide...");
+ RoleGuidePatches.TriggerPreload(MatchInfoGuide.Instance);
+ }
+}
diff --git a/MiraAPI/Patches/RoleGuidePatches.cs b/MiraAPI/Patches/RoleGuidePatches.cs
index ddb814f9..2ad7e385 100644
--- a/MiraAPI/Patches/RoleGuidePatches.cs
+++ b/MiraAPI/Patches/RoleGuidePatches.cs
@@ -216,6 +216,16 @@ public static class RoleGuidePatches
Coroutines.Start(CoPreload(__instance));
}
+ public static void TriggerPreload(MatchInfoGuide instance)
+ {
+ if (!instance || _populate != null)
+ {
+ return;
+ }
+
+ Coroutines.Start(CoPreload(instance));
+ }
+
private static IEnumerator CoPreload(MatchInfoGuide instance)
{
while (instance && (!HudManager.InstanceExists || !GameManager.Instance))