From b557ed22211b619132641a735b264c877dd62fcc Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Thu, 2 Jan 2020 01:18:16 -0500 Subject: [PATCH] Fix PluginAddRuntimeFile --- internal/config/rtfiles.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/rtfiles.go b/internal/config/rtfiles.go index 7e86e1b0..98d27dd3 100644 --- a/internal/config/rtfiles.go +++ b/internal/config/rtfiles.go @@ -253,7 +253,7 @@ func PluginAddRuntimeFile(plugin string, filetype RTFiletype, filePath string) e pldir := pl.DirName fullpath := filepath.Join(ConfigDir, "plug", pldir, filePath) if _, err := os.Stat(fullpath); err == nil { - AddRuntimeFile(filetype, realFile(fullpath)) + AddRealRuntimeFile(filetype, realFile(fullpath)) } else { fullpath = path.Join("runtime", "plugins", pldir, filePath) AddRuntimeFile(filetype, assetFile(fullpath)) @@ -280,5 +280,5 @@ func PluginAddRuntimeFilesFromDirectory(plugin string, filetype RTFiletype, dire // PluginAddRuntimeFileFromMemory adds a file to the runtime files for a plugin from a given string func PluginAddRuntimeFileFromMemory(filetype RTFiletype, filename, data string) { - AddRuntimeFile(filetype, memoryFile{filename, []byte(data)}) + AddRealRuntimeFile(filetype, memoryFile{filename, []byte(data)}) }