示例#1
0
        static void Main(string[] args)
        {
            App.Init(Log.Levels.Info, args);

            var Engine  = new Script.Engine();
            var Context = new jsObject();

            if (File.Exists("Config.psx"))
            {
                if (Engine.Parse(File.ReadAllText("Config.psx")))
                {
                    Engine.Evaluate(Context);
                }
            }

            App.WaitforExit();
        }