Load() private method

private Load ( [ file ) : bool
file [
return bool
示例#1
0
文件: Amanda.cs 项目: remco138/amanda
        //Run a block of code (eg: definitions)
        public bool Load(string code)
        {
            File.WriteAllText(".temp.ama", code);
            bool success = AmandaHook.Load(".temp.ama");

            File.Delete(".temp.ama");

            return(success);
        }
示例#2
0
文件: Amanda.cs 项目: remco138/amanda
        private Amanda(string autorun = null)
        {
            if (Instance == null)
            {
                Instance = this;
            }

            AmandaHook.InitOptions(true, ""); //empty char will result in amanda loading up amanda.ini
            AmandaHook.CreateInterpreter();
            if (autorun != null)
            {
                AmandaHook.Load(autorun);
            }
        }