mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-09 12:37:27 +08:00
add a few more comments
This commit is contained in:
@@ -26,10 +26,12 @@ namespace AquaMai.Fix
|
|||||||
__result = MapMaster.GetSlotData(1);
|
__result = MapMaster.GetSlotData(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This is called when loading the music selection screen, to display characters on the top screen
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(Monitor.CommonMonitor), "SetCharacterSlot", new Type[] { typeof(MessageCharactorInfomationData) })]
|
[HarmonyPatch(typeof(Monitor.CommonMonitor), "SetCharacterSlot", new Type[] { typeof(MessageCharactorInfomationData) })]
|
||||||
public static bool SetCharacterSlot(ref MessageCharactorInfomationData data, Dictionary<int, CharacterSlotData> ____characterSlotData)
|
public static bool SetCharacterSlot(ref MessageCharactorInfomationData data, Dictionary<int, CharacterSlotData> ____characterSlotData)
|
||||||
{
|
{
|
||||||
|
// Some characters are not found in this dictionary. We simply skip loading those characters
|
||||||
if (!____characterSlotData.ContainsKey(data.MapKey))
|
if (!____characterSlotData.ContainsKey(data.MapKey))
|
||||||
{
|
{
|
||||||
Console.Log($"Could not get CharacterSlotData for character [Index={data.Index}, MapKey={data.MapKey}], ignoring...");
|
Console.Log($"Could not get CharacterSlotData for character [Index={data.Index}, MapKey={data.MapKey}], ignoring...");
|
||||||
|
|||||||
Reference in New Issue
Block a user