Exemplo n.º 1
0
 /// <summary>
 /// Constructs a PluginInfo object
 /// </summary>
 /// <param name="InFile"></param>
 /// <param name="InLoadedFrom">Where this pl</param>
 public PluginInfo(FileReference InFile, PluginLoadedFrom InLoadedFrom)
 {
     Name       = Path.GetFileNameWithoutExtension(InFile.FullName);
     File       = InFile;
     Directory  = File.Directory;
     Descriptor = PluginDescriptor.FromFile(File, InLoadedFrom == PluginLoadedFrom.GameProject);
     LoadedFrom = InLoadedFrom;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructs a PluginInfo object
 /// </summary>
 /// <param name="InFile">Path to the plugin descriptor</param>
 /// <param name="InType">The type of this plugin</param>
 public PluginInfo(FileReference InFile, PluginType InType)
 {
     Name       = Path.GetFileNameWithoutExtension(InFile.FullName);
     File       = InFile;
     Directory  = File.Directory;
     Descriptor = PluginDescriptor.FromFile(File);
     Type       = InType;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructs a PluginInfo object
 /// </summary>
 /// <param name="InFileName"></param>
 /// <param name="InLoadedFrom">Where this pl</param>
 public PluginInfo(string InFileName, PluginLoadedFrom InLoadedFrom)
 {
     Name       = Path.GetFileNameWithoutExtension(InFileName);
     FileName   = Path.GetFullPath(InFileName);
     Directory  = Path.GetDirectoryName(FileName);
     Descriptor = PluginDescriptor.FromFile(FileName);
     LoadedFrom = InLoadedFrom;
 }