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
{
2013-12-10 01:45:45 +00:00
public const string MovieVersion1 = "BizHawk v0.0.1" ;
public const string MovieVersion2 = "BizHawk v0.0.2" ;
2013-11-29 23:18:46 +00:00
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-04-22 00:38:59 +00:00
// Core Setting
public const string CORE = "Core" ;
2013-11-30 02:20:34 +00:00
// Gameboy Settings that affect sync
2013-11-29 23:18:46 +00:00
public const string GB_FORCEDMG = "Force_DMG_Mode" ;
public const string GB_GBA_IN_CGB = "GBA_In_CGB" ;
2013-11-30 02:20:34 +00:00
public const string SGB = "SGB" ; // A snes movie will set this to indicate that it's actually SGB
2013-11-29 23:18:46 +00:00
2013-11-30 02:20:34 +00:00
// BIO skipping setting (affects sync)
2013-11-29 23:18:46 +00:00
public const string SKIPBIOS = "Skip_Bios" ;
2013-11-30 02:20:34 +00:00
// Plugin Settings
2013-11-29 23:18:46 +00:00
public const string VIDEOPLUGIN = "VideoPlugin" ;
2013-11-30 02:20:34 +00:00
// Board properties
2013-11-29 23:18:46 +00:00
public const string BOARDPROPERTIES = "BoardProperty" ;
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
}
}
}