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:
@ -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();
|
||||
|
Reference in New Issue
Block a user