2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-07-03 17:51:54 +00:00

Add verbose parameter to ZoneCodeGenerator instead of always being verbose in debug mode

This commit is contained in:
Jan
2019-09-27 22:57:58 +02:00
parent f9b7fa57c8
commit 49dfff1efe
10 changed files with 28 additions and 18 deletions

View File

@ -16,7 +16,7 @@ namespace ZoneCodeGenerator.Parsing.CommandFile
new PostProcessorDefaultBlock(),
};
public static bool ReadFile(string path, CUISession session)
public static bool ReadFile(string path, CUISession session, bool verbose = false)
{
try
{
@ -29,7 +29,7 @@ namespace ZoneCodeGenerator.Parsing.CommandFile
var lexer = new Lexer(preprocessorStream);
var parser = new Parser<ICommandParserState>(state, lexer);
if (!parser.Parse())
if (!parser.Parse(verbose))
return false;
preprocessorStream.Close();