mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 20:12:39 +00:00
[F] Game crash after one track with new AIME with SkipToMusicSelection
This commit is contained in:
parent
27b1a31436
commit
bf9197b3e4
@ -34,6 +34,7 @@ namespace AquaMai.UX
|
||||
{
|
||||
_keyPressFrames = 0;
|
||||
MelonLogger.Msg(_container.processManager.Dump());
|
||||
MelonLogger.Msg(Singleton<UserDataManager>.Instance.GetUserData(0).Dump());
|
||||
return;
|
||||
}
|
||||
|
||||
@ -50,6 +51,7 @@ namespace AquaMai.UX
|
||||
{
|
||||
// After login
|
||||
case "Process.ModeSelect.ModeSelectProcess":
|
||||
case "Process.LoginBonus.LoginBonusProcess":
|
||||
case "Process.RegionalSelectProcess":
|
||||
case "Process.CharacterSelectProcess":
|
||||
case "Process.TicketSelect.TicketSelectProcess":
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
using HarmonyLib;
|
||||
using MAI2.Util;
|
||||
using Manager;
|
||||
using Manager.UserDatas;
|
||||
using MelonLoader;
|
||||
using Monitor;
|
||||
using Process;
|
||||
using Process.Information;
|
||||
|
||||
@ -22,5 +26,15 @@ namespace AquaMai.UX
|
||||
___container.processManager.ReleaseProcess(__instance);
|
||||
return false;
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(MapResultMonitor), "Initialize")]
|
||||
public static void MapResultMonitorPreInitialize(int monIndex)
|
||||
{
|
||||
var userData = Singleton<UserDataManager>.Instance.GetUserData(monIndex);
|
||||
var index = userData.MapList.FindIndex((UserMapData m) => m.ID == userData.Detail.SelectMapID);
|
||||
if (index >= 0) return;
|
||||
userData.MapList.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user