Skip to content

Commit 5ba4ce1

Browse files
committed
Added ACPI > Patch view
1 parent f9cde05 commit 5ba4ce1

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

acpi_patch.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
local injection = function(detections, order, plist)
3+
detections["ACPI > Patch"] = {}
4+
table.insert(order, 2, "ACPI > Patch") -- After "Info"
5+
for _, v in pairs(plist.ACPI.Patch) do
6+
print(v.Enabled)
7+
if not v.Enabled then
8+
table.insert(detections["ACPI > Patch"], function() end) -- Add count, do nothing
9+
else
10+
table.insert(detections["ACPI > Patch"], function()
11+
return v.Comment
12+
end)
13+
end
14+
end
15+
end
16+
17+
return injection

0 commit comments

Comments
 (0)