private static bool CreateInstance(out IYiScript script) { var appdomain = AppDomainFactory.CreateAppDomain(FolderName); script = AppDomainFactory.InstantiatePlugin(Environment.CurrentDirectory + "\\" + CachedPath, appdomain); return(script != null); }
public bool Compile() { _script = ScriptEngine.CompileFolder(Environment.CurrentDirectory + "\\Scripts\\" + FolderName); if (_script == null) { Output.WriteLine($"{FolderName} failed to load."); return(false); } Activate(); YiCore.CompactLoh(); return(true); }