mirror of https://github.com/hykilpikonna/AquaDX
[F] Game crash after one track with new AIME with SkipToMusicSelection
parent
27b1a31436
commit
bf9197b3e4
|
@ -34,6 +34,7 @@ namespace AquaMai.UX
|
||||||
{
|
{
|
||||||
_keyPressFrames = 0;
|
_keyPressFrames = 0;
|
||||||
MelonLogger.Msg(_container.processManager.Dump());
|
MelonLogger.Msg(_container.processManager.Dump());
|
||||||
|
MelonLogger.Msg(Singleton<UserDataManager>.Instance.GetUserData(0).Dump());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,6 +51,7 @@ namespace AquaMai.UX
|
||||||
{
|
{
|
||||||
// After login
|
// After login
|
||||||
case "Process.ModeSelect.ModeSelectProcess":
|
case "Process.ModeSelect.ModeSelectProcess":
|
||||||
|
case "Process.LoginBonus.LoginBonusProcess":
|
||||||
case "Process.RegionalSelectProcess":
|
case "Process.RegionalSelectProcess":
|
||||||
case "Process.CharacterSelectProcess":
|
case "Process.CharacterSelectProcess":
|
||||||
case "Process.TicketSelect.TicketSelectProcess":
|
case "Process.TicketSelect.TicketSelectProcess":
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
|
using MAI2.Util;
|
||||||
using Manager;
|
using Manager;
|
||||||
|
using Manager.UserDatas;
|
||||||
|
using MelonLoader;
|
||||||
|
using Monitor;
|
||||||
using Process;
|
using Process;
|
||||||
using Process.Information;
|
using Process.Information;
|
||||||
|
|
||||||
|
@ -22,5 +26,15 @@ namespace AquaMai.UX
|
||||||
___container.processManager.ReleaseProcess(__instance);
|
___container.processManager.ReleaseProcess(__instance);
|
||||||
return false;
|
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…
Reference in New Issue