예제 #1
0
        private void CreateAudioVOXFile(bool forceRebuild)
        {
            List <string> fileListForVox = new List <string>();
            string        audioVox       = GetCompiledPath(AGSEditor.AUDIO_VOX_FILE_NAME);
            bool          rebuildVox     = (!File.Exists(audioVox)) || (forceRebuild);

            foreach (AudioClip clip in Factory.AGSEditor.CurrentGame.RootAudioClipFolder.GetAllAudioClipsFromAllSubFolders())
            {
                if (clip.BundlingType == AudioFileBundlingType.InSeparateVOX)
                {
                    string thisFileName = clip.CacheFileName;
                    if (File.GetLastWriteTimeUtc(thisFileName) != clip.FileLastModifiedDate)
                    {
                        rebuildVox = true;
                        clip.FileLastModifiedDate = File.GetLastWriteTimeUtc(thisFileName);
                    }
                    fileListForVox.Add(thisFileName);
                }
            }

            if (File.Exists(audioVox) &&
                (fileListForVox.Count == 0) || (rebuildVox))
            {
                File.Delete(audioVox);
            }

            if ((rebuildVox) && (fileListForVox.Count > 0))
            {
                DataFileWriter.MakeFlatDataFile(fileListForVox.ToArray(), 0, audioVox, false);
            }
        }
예제 #2
0
 public void CreateDebugMiniEXE(string[] fileList, string exeFileName)
 {
     DataFileWriter.MakeFlatDataFile(fileList, 0, exeFileName, false);
 }