public static void Voice_BGM_Change_List_Init()
 {
     FTPClient.DownloadFile("/WoTB_Voice_Mod/Update/Data/Change_To_Wwise.txt", Special_Path + "/Wwise/Change_To_Wwise.dat");
     if (!File.Exists(Special_Path + "/Wwise/Change_To_Wwise.dat"))
     {
         return;
     }
     try
     {
         Voice_BGM_Change_List.Clear();
         for (int Number = 0; Number < 37; Number++)
         {
             Voice_BGM_Change_List.Add(new List <string>());
         }
         string       line;
         int          Number_01 = -1;
         StreamReader str       = new StreamReader(Special_Path + "/Wwise/Change_To_Wwise.dat");
         while ((line = str.ReadLine()) != null)
         {
             if (line[0] == '・')
             {
                 Number_01++;
                 continue;
             }
             Voice_BGM_Change_List[Number_01].Add(line.Trim());
         }
         str.Close();
     }
     catch (Exception e)
     {
         Sub_Code.Error_Log_Write(e.Message);
     }
 }
Beispiel #2
0
        public byte[] GetFile()
        {
            var f = cl.DownloadFile(folder);

            if (f.IsSuccess)
            {
                return(f.Bytes);
            }
            else
            {
                Console.WriteLine(f.ExceptionMessage);
                return(new byte[0]);
            }
        }