Set system ID in input log

This commit is contained in:
andres.delikat 2011-05-14 02:34:18 +00:00
parent 8b313774eb
commit 3dbf342dbe
3 changed files with 22 additions and 5 deletions

View File

@ -660,6 +660,7 @@ namespace BizHawk.MultiClient
} }
//TODO: autoload movie logic goes here //TODO: autoload movie logic goes here
InputLog.SetHeaderLine(MovieHeader.PLATFORM, Global.Emulator.SystemId);
InputLog.StartNewRecording(); //(Keep this line) InputLog.StartNewRecording(); //(Keep this line)
//setup the throttle based on platform's specifications //setup the throttle based on platform's specifications

View File

@ -330,5 +330,10 @@ namespace BizHawk.MultiClient
if (MovieMode == MOVIEMODE.PLAY) if (MovieMode == MOVIEMODE.PLAY)
MovieMode = MOVIEMODE.FINISHED; MovieMode = MOVIEMODE.FINISHED;
} }
public bool SetHeaderLine(string key, string value)
{
return Header.SetHeaderLine(key, value);
}
} }
} }

View File

@ -16,13 +16,13 @@ namespace BizHawk.MultiClient
public Dictionary<string, string> HeaderParams = new Dictionary<string, string>(); //Platform specific options go here public Dictionary<string, string> HeaderParams = new Dictionary<string, string>(); //Platform specific options go here
public List<string> Comments = new List<string>(); public List<string> Comments = new List<string>();
public const string EMULATIONVERSION = "EmulationVersion"; public const string EMULATIONVERSION = "emuVersion";
public const string MOVIEVERSION = "MovieVersion"; public const string MOVIEVERSION = "MovieVersion";
public const string PLATFORM = "Platform"; public const string PLATFORM = "Platform";
public const string GAMENAME = "GameName"; public const string GAMENAME = "GameName";
public const string AUTHOR = "Author"; public const string AUTHOR = "Author";
public const string RERECORDS = "Rerecords"; public const string RERECORDS = "rerecordCount";
public static string MovieVersion = "BizHawk v0.0.1"; public static string MovieVersion = "BizHawk v0.0.1";
@ -51,7 +51,7 @@ namespace BizHawk.MultiClient
/// </summary> /// </summary>
/// <param name="key"></param> /// <param name="key"></param>
/// <param name="value"></param> /// <param name="value"></param>
public void AddHeaderLine(string key, string value) //TODO: check for redundancy and return bool? public void AddHeaderLine(string key, string value)
{ {
string temp = value; string temp = value;
@ -61,7 +61,7 @@ namespace BizHawk.MultiClient
public void UpdateRerecordCount(int count) public void UpdateRerecordCount(int count)
{ {
//TODO HeaderParams[RERECORDS] = count.ToString();
} }
public bool RemoveHeaderLine(string key) public bool RemoveHeaderLine(string key)
@ -80,5 +80,16 @@ namespace BizHawk.MultiClient
HeaderParams.TryGetValue(key, out value); HeaderParams.TryGetValue(key, out value);
return value; return value;
} }
public bool SetHeaderLine(string key, string value)
{
string test = "";
if (!(HeaderParams.TryGetValue(test, out value)))
return false;
HeaderParams[key] = value;
return true;
}
} }
} }