-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathLiveSplit.FallenAces.asl
45 lines (36 loc) · 1.04 KB
/
LiveSplit.FallenAces.asl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
state("Fallen Aces")
{
}
startup
{
Assembly.Load(File.ReadAllBytes("Components/asl-help")).CreateInstance("Unity");
vars.Helper.GameName = "Fallen Aces";
vars.Helper.AlertLoadless();
settings.Add("FA", true, "Fallen Aces");
settings.Add("CHAPTERS", true, "Split on each Chapter End Screen", "FA");
}
init
{
vars.Helper.TryLoad = (Func<dynamic, bool>)(mono =>
{
vars.Helper["Loads"] = mono.Make<bool>("GameworldSceneController", "Instance", "_worldLoader", "_isLoading");
vars.Helper["MenuID"] = mono.Make<int>("MainMenuManager", "Instance", "_currentMenuId");
vars.Helper["ContextID"] = mono.Make<int>("MainMenuManager", "Instance", "_context");
return true;
});
}
isLoading
{
return current.Loads || current.ContextID != 2;
}
start
{
return old.ContextID == 0 && current.ContextID == 2 && current.MenuID == 0;
}
split
{
if(current.ContextID == 4 && old.ContextID != 4)
{
return true && settings["CHAPTERS"];
}
}