diff --git a/README.md b/README.md index c49540b..7a89247 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,8 @@ Instead of editing the source code directly, the settings can be changed by edit "ForcedIncr": 10, // Number of RNG additions when "Play" is selected "AcceptDelayFrame": 3, // Number of frames after selecting "Play" that RNG additions stop "Prompt": "> ", // The prompt string to display - "Interactive": false // If should prompt for parameters in case they're not supplied + "Interactive": false, // If should prompt for parameters in case they're not supplied + "Win7": false // If should apply some settings to work better on Win7 } ``` diff --git a/settings.json b/settings.json index b8cc5c6..41b2f7b 100644 --- a/settings.json +++ b/settings.json @@ -17,5 +17,6 @@ "ForcedIncr": 10, "AcceptDelayFrame": 3, "Prompt": "> ", - "Interactive": false + "Interactive": false, + "Win7": false } diff --git a/src/Options.cs b/src/Options.cs index db50833..12e2574 100644 --- a/src/Options.cs +++ b/src/Options.cs @@ -24,6 +24,7 @@ public class Options public int AcceptDelayFrame { get; set; } = 3; public string Prompt { get; set; } = "> "; public bool Interactive { get; set; } = false; + public bool Win7 { get; set; } = false; public enum TOrder { diff --git a/src/Program.cs b/src/Program.cs index 6a633ba..ecb13ef 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -234,7 +234,8 @@ static uint RareTimer(uint state, Player player) var duration = DateTime.Now.SecondsSinceEpoch() - start; incr = (uint)Math.Max( - Math.Round((duration - incrStart) * 60), + // jester reported that it works better as 63 on Win7 + Math.Round((duration - incrStart) * (_options.Win7 ? 63 : 60)), _options.ForcedIncr + _options.AcceptDelayFrame );