added libraries

This commit is contained in:
gnembon committed 2020-01-09 00:53:36 -04:00
1 parent bbb1ed4d35
commit 9214c31352
6 files changed
+32 -32

No files matched your search

+2 -2
View File
@@ -93,7 +93,7 @@ public abstract class ScriptHost
public void importModule(Context c, String moduleName)
{
if (modules.containsKey(moduleName)) return; // aready imported
Module module = getModuleByName(moduleName);
Module module = getModuleOrLibraryByName(moduleName);
if (modules.containsKey(module.getName())) return; // aready imported, once again, in case some discrepancies in names?
modules.put(module.getName(), module);
ModuleData data = new ModuleData(module);
@@ -134,7 +134,7 @@ public abstract class ScriptHost
}
}
protected abstract Module getModuleByName(String name); // this should be shell out in the executor
protected abstract Module getModuleOrLibraryByName(String name); // this should be shell out in the executor
protected abstract void runModuleCode(Context c, Module module); // this should be shell out in the executor