示例#1
0
        public static int CheckRuntimeFile()
        {
            if (!Application.get_isEditor())
            {
                return(0);
            }
            string text = Application.get_dataPath() + "/StreamingAssets/";

            if (!Directory.Exists(text))
            {
                return(-1);
            }
            string[] files = Directory.GetFiles(text);
            if (files.Length == 0)
            {
                return(-1);
            }
            if (!File.Exists(text + Util.GetIndexName()))
            {
                return(-1);
            }
            string text2 = AppConst.FrameworkRoot + "/ToLua/Source/Generate/";

            if (!Directory.Exists(text2))
            {
                return(-2);
            }
            string[] files2 = Directory.GetFiles(text2);
            if (files2.Length == 0)
            {
                return(-2);
            }
            return(0);
        }