2019-12-26 23:01:54 -05:00
|
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2019-01-10 17:26:53 -05:00
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace nDisplayLauncher.Cluster.Config
|
|
|
|
|
|
{
|
|
|
|
|
|
public enum ConfigurationVersion
|
|
|
|
|
|
{
|
|
|
|
|
|
Ver21, // 4.21 and older
|
2019-06-07 11:22:52 -04:00
|
|
|
|
Ver22,
|
|
|
|
|
|
Ver23
|
2019-01-10 17:26:53 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class ConfigurationVersionHelpers
|
|
|
|
|
|
{
|
|
|
|
|
|
public static ConfigurationVersion FromString(string Ver)
|
|
|
|
|
|
{
|
2019-06-07 11:22:52 -04:00
|
|
|
|
if (Ver.CompareTo("23") == 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
return ConfigurationVersion.Ver23;
|
|
|
|
|
|
}
|
2019-01-10 17:26:53 -05:00
|
|
|
|
if (Ver.CompareTo("22") == 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
return ConfigurationVersion.Ver22;
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
return ConfigurationVersion.Ver21;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static string ToString(ConfigurationVersion Ver)
|
|
|
|
|
|
{
|
|
|
|
|
|
switch (Ver)
|
|
|
|
|
|
{
|
2019-06-07 11:22:52 -04:00
|
|
|
|
case ConfigurationVersion.Ver23:
|
|
|
|
|
|
return "23";
|
|
|
|
|
|
|
2019-01-10 17:26:53 -05:00
|
|
|
|
case ConfigurationVersion.Ver22:
|
|
|
|
|
|
return "22";
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
return "21";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|