2013-12-30 01:58:44 +00:00
using System.Linq ;
2013-11-29 23:18:46 +00:00
namespace BizHawk.Client.Common
{
public static class HeaderKeys
{
public const string EMULATIONVERSION = "emuVersion" ;
public const string MOVIEVERSION = "MovieVersion" ;
public const string PLATFORM = "Platform" ;
public const string GAMENAME = "GameName" ;
public const string AUTHOR = "Author" ;
public const string RERECORDS = "rerecordCount" ;
public const string STARTSFROMSAVESTATE = "StartsFromSavestate" ;
2014-04-25 02:19:46 +00:00
public const string SAVESTATEBINARYBASE64BLOB = "SavestateBinaryBase64Blob" ; //this string will not contain base64: ; it's implicit (this is to avoid another big string op to dice off the base64: substring)
2013-11-29 23:18:46 +00:00
public const string FOURSCORE = "FourScore" ;
public const string SHA1 = "SHA1" ;
public const string FIRMWARESHA1 = "FirmwareSHA1" ;
public const string PAL = "PAL" ;
public const string BOARDNAME = "BoardName" ;
2014-05-18 15:07:50 +00:00
public const string SYNCSETTINGS = "SyncSettings" ;
2014-06-14 18:52:00 +00:00
public const string LOOPOFFSET = "LoopOffset" ;
2014-04-22 00:38:59 +00:00
// Core Setting
public const string CORE = "Core" ;
2013-11-30 02:20:34 +00:00
// Plugin Settings
2013-11-29 23:18:46 +00:00
public const string VIDEOPLUGIN = "VideoPlugin" ;
public static bool Contains ( string val )
{
2014-02-08 16:29:57 +00:00
return typeof ( HeaderKeys )
. GetFields ( )
2013-11-30 02:20:34 +00:00
. Select ( field = > field . GetValue ( null ) . ToString ( ) )
2014-02-08 16:29:57 +00:00
. Contains ( val ) ;
2013-11-29 23:18:46 +00:00
}
}
}