Add support for installing content from disk.

This commit is contained in:
Paul Chote
2016-06-22 19:36:28 +01:00
parent 7ca7e695e1
commit d1a973458b
3 changed files with 130 additions and 25 deletions

View File

@@ -17,6 +17,7 @@ namespace OpenRA
{
public class ModContent : IGlobalModData
{
public enum SourceType { Disc, Install }
public class ModPackage
{
public readonly string Title;
@@ -39,6 +40,12 @@ namespace OpenRA
public class ModSource
{
public readonly SourceType Type = SourceType.Disc;
// Used to find installation locations for SourceType.Install
public readonly string RegistryKey;
public readonly string RegistryValue;
public readonly string Title;
public readonly Dictionary<string, string> IDFiles;