lycheedev 3.2.6 → 3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
package/package.json
CHANGED
|
@@ -37,6 +37,9 @@ local function current()
|
|
|
37
37
|
end
|
|
38
38
|
return profile
|
|
39
39
|
end
|
|
40
|
+
local function stopWaiting()
|
|
41
|
+
if deferred then deferred:UnregisterAllEvents(); deferred:SetScript("OnEvent", nil) end
|
|
42
|
+
end
|
|
40
43
|
local function installDefaults()
|
|
41
44
|
local ready, reason = noncombat()
|
|
42
45
|
if not ready then return nil, reason end
|
|
@@ -59,6 +62,18 @@ local function installDefaults()
|
|
|
59
62
|
end
|
|
60
63
|
end
|
|
61
64
|
end
|
|
65
|
+
-- Bindings can still be loading at PLAYER_LOGIN. Resolve the player's
|
|
66
|
+
-- writable set before any mutation; never save defaults to a guessed set.
|
|
67
|
+
local bindingSet
|
|
68
|
+
if #pending > 0 then
|
|
69
|
+
bindingSet = GetCurrentBindingSet()
|
|
70
|
+
if restricted(bindingSet) or (bindingSet ~= 1 and bindingSet ~= 2) then
|
|
71
|
+
return nil, "receiver_binding_set_unavailable"
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
-- SetBinding/SaveBindings can synchronously emit UPDATE_BINDINGS, including
|
|
75
|
+
-- when a manual reset completes an outstanding startup wait.
|
|
76
|
+
stopWaiting()
|
|
62
77
|
local assigned = {}
|
|
63
78
|
for _, entry in ipairs(pending) do
|
|
64
79
|
if not SetBinding(entry.key, entry.action) then
|
|
@@ -67,17 +82,19 @@ local function installDefaults()
|
|
|
67
82
|
end
|
|
68
83
|
assigned[#assigned + 1] = entry.key
|
|
69
84
|
end
|
|
70
|
-
if #assigned > 0 then SaveBindings(
|
|
85
|
+
if #assigned > 0 then SaveBindings(bindingSet) end
|
|
71
86
|
return current()
|
|
72
87
|
end
|
|
73
88
|
local function defer(event)
|
|
74
89
|
if not deferred then deferred = CreateFrame("Frame") end
|
|
75
90
|
deferred:RegisterEvent(event)
|
|
76
|
-
deferred:
|
|
77
|
-
|
|
91
|
+
if event == "BINDINGS_LOADED" then deferred:RegisterEvent("UPDATE_BINDINGS") end
|
|
92
|
+
deferred:SetScript("OnEvent", function()
|
|
93
|
+
stopWaiting()
|
|
78
94
|
local ok, reason = installDefaults()
|
|
79
95
|
if not ok and reason == "receiver_combat" then defer("PLAYER_REGEN_ENABLED")
|
|
80
|
-
elseif
|
|
96
|
+
elseif not ok and reason == "receiver_binding_set_unavailable" then defer("BINDINGS_LOADED") end
|
|
97
|
+
if ns.Startup then ns.Startup.receiverFailure = reason end
|
|
81
98
|
if ns.Bootstrap then ns.Bootstrap.Publish() end
|
|
82
99
|
end)
|
|
83
100
|
return true
|
|
@@ -94,7 +111,9 @@ ns.ReceiverBindings = {
|
|
|
94
111
|
end,
|
|
95
112
|
Reset = function()
|
|
96
113
|
if ns.InputProtection and ns.InputProtection.IsActive() then return nil, "receiver_active" end
|
|
97
|
-
|
|
114
|
+
local profile, reason = installDefaults()
|
|
115
|
+
if profile and ns.Startup then ns.Startup.receiverFailure = nil end
|
|
116
|
+
return profile, reason
|
|
98
117
|
end,
|
|
99
118
|
Register = function(callbacks)
|
|
100
119
|
if handlers then local profile, reason = current(); return profile and true or nil, reason end
|
|
@@ -105,6 +124,7 @@ ns.ReceiverBindings = {
|
|
|
105
124
|
if type(IsLoggedIn) == "function" and IsLoggedIn() ~= true then return defer("PLAYER_LOGIN") end
|
|
106
125
|
local profile, reason = installDefaults()
|
|
107
126
|
if not profile and reason == "receiver_combat" then return defer("PLAYER_REGEN_ENABLED") end
|
|
127
|
+
if not profile and reason == "receiver_binding_set_unavailable" then return defer("BINDINGS_LOADED") end
|
|
108
128
|
return profile and true or nil, reason
|
|
109
129
|
end,
|
|
110
130
|
}
|
package/release.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "lycheedev.release.v1",
|
|
3
|
-
"version": "3.2.
|
|
4
|
-
"commit": "
|
|
3
|
+
"version": "3.2.7",
|
|
4
|
+
"commit": "dcb35d7f362621bd2bcd98c44dac1c04477cc05b",
|
|
5
5
|
"binaries": {
|
|
6
6
|
"windows-amd64": {
|
|
7
7
|
"path": "native/windows-amd64/lycheedev.exe",
|
|
8
8
|
"bytes": 24575488,
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "dbd5c2ae4106006bae1def4815a2b056178ef63818ca2f110ef5e9e8d21de31c"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"resources": [
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"path": "addon/Bridge/ReceiverBindings.lua",
|
|
55
|
-
"bytes":
|
|
56
|
-
"sha256": "
|
|
55
|
+
"bytes": 6284,
|
|
56
|
+
"sha256": "300f763f146ed383d3a34004d82ef21cd0b2ae106dc5baf1c17df0c737cb880f"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"path": "addon/Bridge/SlotProtocol.lua",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
{
|
|
114
114
|
"path": "addon/Core/Runtime.lua",
|
|
115
115
|
"bytes": 2615,
|
|
116
|
-
"sha256": "
|
|
116
|
+
"sha256": "00676640436d32432fab5cac5245f1ec99e134dd64173289dc40063cc7de7ac1"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"path": "addon/Core/Safety.lua",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
{
|
|
144
144
|
"path": "addon/Lychee Dev.toc",
|
|
145
145
|
"bytes": 2005,
|
|
146
|
-
"sha256": "
|
|
146
|
+
"sha256": "6400b36305c191dbb099862e40361a7fd55c938b7a22aee356e8afb25bb2c45d"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
"path": "addon/Media/GitHub.png",
|
|
@@ -6448,9 +6448,9 @@
|
|
|
6448
6448
|
],
|
|
6449
6449
|
"correspondingSource": {
|
|
6450
6450
|
"repository": "https://github.com/Follen/Lychee-Dev",
|
|
6451
|
-
"commit": "
|
|
6452
|
-
"tag": "v3.2.
|
|
6453
|
-
"archive": "lycheedev-3.2.
|
|
6454
|
-
"sha256": "
|
|
6451
|
+
"commit": "dcb35d7f362621bd2bcd98c44dac1c04477cc05b",
|
|
6452
|
+
"tag": "v3.2.7",
|
|
6453
|
+
"archive": "lycheedev-3.2.7-corresponding-source.tar.gz",
|
|
6454
|
+
"sha256": "ea02c7ab4b6a87d1984533609422502ddcde33c0c0f7c2f318e1bbd549675ad5"
|
|
6455
6455
|
}
|
|
6456
6456
|
}
|