Esempio n. 1
0
 public static void update_app_fix()
 {
     index = 0;
     PublicClass.InitStaticData();
     db_list = new List <string>();
     db_list.AddRange(Vesal_DirFiles.ReadFileWithLine(PublicClass.filePath + "Mediacl/222.txt"));
     count = db_list.Count;
     update_db_process(db_list[index], count_load);
 }
Esempio n. 2
0
    void ReadCopyList()
    {
        string target_file = PublicClass.filePath + "filelist.txt";

        StartCoroutine((Vesal_DirFiles.Vesal_FileCopy(PublicClass.fileLocalStreamingPath + "filelist.txt", target_file, () => {
            copy_list.AddRange(Vesal_DirFiles.ReadFileWithLine(target_file));
            DebugLog.DebugLogInfo("copy_list count -----------------:" + copy_list.Count);
            PublicClass.DataManagerStatus = DataIntState.Init;
            Vesal_DirFiles.DelFile(target_file);
        })));
    }
Esempio n. 3
0
        string Read()
        {
            string        target_file = PublicClass.fileLocalStreamingPath + "server_ip.txt";
            List <string> tempList    = Vesal_DirFiles.ReadFileWithLine(target_file);
            string        str         = "";

            for (int i = 0; i < tempList.Count; i++)
            {
                str += tempList[i];
            }
            if (str.Contains("server"))
            {
                return(str.Split('s')[0]);
            }
            else
            {
                return(str.Split('c')[0]);
            }
        }
Esempio n. 4
0
        string GetRole()
        {
            string target_file = PublicClass.fileLocalStreamingPath + "server_ip.txt";

            Debug.Log("server_ip info path " + target_file);
            List <string> tempList = Vesal_DirFiles.ReadFileWithLine(target_file);
            string        str      = "";

            for (int i = 0; i < tempList.Count; i++)
            {
                str += tempList[i];
            }
            if (str.Contains("server"))
            {
                return("server");
            }
            else
            {
                return("client");
            }
        }