Skip to content

Commit d9d4829

Browse files
committed
Added ACPI > Patch view, organization
1 parent 5ba4ce1 commit d9d4829

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

main.lua

100644100755
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,17 @@ end
5757
local detections, order = table.unpack((require "detections"(plist, data, kexts, tools, drivers, ssdts, kextsshow, kextsarray, driversarray)))
5858

5959
local function load_plugin(name)
60-
if pcall(function() require(name) end) then
61-
require(name)(detections, order, plist, data, kexts, tools, drivers, ssdts, kextsshow, kextsarray, driversarray)
60+
local _, f = pcall(require, name)
61+
if type(f) == "function" then
62+
f(detections, order, plist, data, kexts, tools, drivers, ssdts, kextsshow, kextsarray, driversarray)
6263
end
6364
end
6465

65-
load_plugin "plugin"
66-
load_plugin "proppy"
66+
load_plugin "acpi_patch" -- Show ACPI patches
67+
68+
load_plugin "proppy" -- Proprietary checks
69+
70+
load_plugin "plugin" -- Default plugin name
6771

6872
---@diagnostic disable-next-line: param-type-mismatch
6973
for _, k in pairs(order) do

0 commit comments

Comments
 (0)