示例#1
0
 public void Load(Content content)
 {
     content = (Content)((int)content & (int)(byte)((int)available_content & (int)(byte)(~(uint)loaded_content)));
     if ((content & Content.Strings) != 0 && LoadStrings())
     {
         loaded_content |= Content.Strings;
     }
     if ((content & Content.Translation) != 0 && LoadTranslations())
     {
         loaded_content |= Content.Translation;
     }
     if ((content & Content.DLL) != 0 && DLLLoader.LoadDLLs(label.install_path))
     {
         loaded_content |= Content.DLL;
     }
     if ((content & Content.LayerableFiles) != 0)
     {
         FileSystem.file_sources.Insert(0, file_source.GetFileSystem());
         loaded_content |= Content.LayerableFiles;
     }
     if ((content & Content.Animation) != 0 && LoadAnimation())
     {
         loaded_content |= Content.Animation;
     }
 }