summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-28 10:35:57 -0500
committerJeff Carr <[email protected]>2023-04-28 10:35:57 -0500
commit923f7721cca66d84dea77ffd9640d793803142ee (patch)
tree824c9a2b83f574c37279c8526a1566035e78c2bb /plugin.go
parent03942de00e133daf59da8ed3b6c3e71ce8afe316 (diff)
s/Config/me/ to remove direct access to anything
since most everything needs to be passed to the toolkits everything should be accessed via func()'s Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin.go b/plugin.go
index 1a98b63..8280bb8 100644
--- a/plugin.go
+++ b/plugin.go
@@ -120,7 +120,7 @@ func searchPaths(name string) *aplug {
// first try to load the embedded plugin file
filename = "plugins/" + name + ".so"
- pfile, err = Config.resFS.ReadFile(filename)
+ pfile, err = me.resFS.ReadFile(filename)
if (err == nil) {
log(logError, "write out file here", name, filename, len(pfile))
exit()
@@ -195,7 +195,7 @@ func initToolkit(name string, filename string) *aplug {
log(debugError, "initToolkit() ERROR PluginChannel() returned nil for plugin:", newPlug.name, filename)
return nil
}
- newPlug.Callback(Config.guiChan)
+ newPlug.Callback(me.guiChan)
newPlug.InitOk = true
log(debugPlugin, "initToolkit() END", newPlug.name, filename)