Movies - support the ? in mnemonics, ? will be randomly on or off during playback. Note: there is no UI for this, it makes a movie potentially non-deterministic, and is probably useless.

This commit is contained in:
adelikat 2013-08-20 00:41:48 +00:00
parent a28f8e5062
commit 1584a114fe
1 changed files with 15 additions and 1 deletions

View File

@ -673,7 +673,21 @@ namespace BizHawk.MultiClient
public bool this[int c]
{
get { return m[c] != '.'; }
get
{
if (m[c] == '.')
{
return false;
}
else if (m[c] == '?')
{
return new Random((int)DateTime.Now.Ticks).Next(0, 10) > 5;
}
else
{
return true;
}
}
}
}