From 1584a114fe782bc7575d3fca7ac998fb27b339bf Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 20 Aug 2013 00:41:48 +0000 Subject: [PATCH] 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. --- BizHawk.MultiClient/movie/MovieMnemonics.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/movie/MovieMnemonics.cs b/BizHawk.MultiClient/movie/MovieMnemonics.cs index 16baa43acf..8acb59cfd3 100644 --- a/BizHawk.MultiClient/movie/MovieMnemonics.cs +++ b/BizHawk.MultiClient/movie/MovieMnemonics.cs @@ -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; + } + } } }