add settings notes for vsh

This commit is contained in:
13xforever 2019-04-02 00:06:26 +05:00
parent 418a5b503d
commit 56395c7aa4

View File

@ -43,6 +43,8 @@ namespace CompatBot.Utils.ResultFormatters
CheckSimpsonsSettings(serial, items, notes);
CheckNierSettings(serial, items, notes);
}
else if (items["game_title"] == "vsh.self")
CheckVshSettings(items, notes);
if (items["hook_static_functions"] is string hookStaticFunctions && hookStaticFunctions == EnabledMark)
notes.Add("⚠ `Hook Static Functions` is enabled, please disable");
@ -217,5 +219,24 @@ namespace CompatBot.Utils.ResultFormatters
notes.Add(" To enter the character name, disable `Native UI` and use Japanese text");
}
}
private static void CheckVshSettings(NameValueCollection items, List<string> notes)
{
if (items["build_branch"] is string branch
&& !branch.Contains("vsh", StringComparison.InvariantCultureIgnoreCase))
notes.Add(" Booting `vsh.self` currently requires a special build");
if (items["lib_loader"] is string libLoader
&& libLoader != "Manual selection")
notes.Add("⚠ `Library Loader` must be set to `Manual`");
if (items["library_list"] is string libList
&& libList != "None")
notes.Add("⚠ Every library module must be deselected");
if (items["debug_console_mode"] is string decrMode && decrMode != EnabledMark)
notes.Add("⚠ `Debug Console Mode` must be enabled");
if (items["write_color_buffers"] is string wcb && wcb != EnabledMark)
notes.Add(" `Write Color Buffers` should be enabled for proper visuals");
if (items["cpu_blit"] is string cpuBlit && cpuBlit != EnabledMark)
notes.Add(" `Force CPU Blit` should be enabled for proper visuals");
}
}
}