log note for the sleep timer accuracy mode for nier

This commit is contained in:
13xforever 2019-07-31 16:50:29 +05:00
parent 9a559fccdf
commit b1009a9362
2 changed files with 11 additions and 2 deletions

View File

@ -78,6 +78,8 @@ namespace CompatBot.EventHandlers.LogParsing
["Hook static functions:"] = new Regex(@"Hook static functions: (?<hook_static_functions>.*?)\r?$", DefaultOptions),
["Load libraries:"] = new Regex(@"libraries:\r?\n(?<library_list>(.*?(- .*?|\[\])\r?\n)+)", DefaultOptions),
["HLE lwmutex:"] = new Regex(@"HLE lwmutex: (?<hle_lwmutex>.*?)\r?$", DefaultOptions),
["Clocks scale:"] = new Regex(@"Clocks scale: (?<clock_scale>.*?)\r?$", DefaultOptions),
["Sleep timers accuracy:"] = new Regex(@"Sleep timers accuracy: (?<sleep_timer>.*?)\r?$", DefaultOptions),
},
EndTrigger = new[] {"VFS:"},
},

View File

@ -140,9 +140,12 @@ namespace CompatBot.Utils.ResultFormatters
if (items["vblank_rate"] is string vblank
&& int.TryParse(vblank, out var vblankRate)
&& vblankRate != 60)
{
notes.Add($" `VBlank Rate` is set to {vblankRate} Hz");
}
if (items["clock_scale"] is string clockScaleStr
&& int.TryParse(clockScaleStr, out var clockScale)
&& clockScale != 100)
notes.Add($"⚠ `Clock Scale` is set to {clockScale}%");
if (!string.IsNullOrEmpty(serial)
&& KnownMotionControlsIds.Contains(serial)
@ -332,6 +335,10 @@ namespace CompatBot.Utils.ResultFormatters
if (serial == "BLJM60223" && items["native_ui"] == EnabledMark)
notes.Add(" To enter the character name, disable `Native UI` and use Japanese text");
if (items["sleep_timer"] is string sleepTimer
&& sleepTimer != "Usleep")
notes.Add("⚠ Please set `Sleep timers accuracy` to `Usleep` in config file");
}
}