mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Add support for running script files (indicated by .mse-script extension) from the command line.
This commit is contained in:
@@ -172,7 +172,12 @@ void TextIOHandler::show_message(MessageType type, String const& message) {
|
||||
} else {
|
||||
*this << RED << _("ERROR: ") << NORMAL << replace_all(message,_("\n"),_("\n ")) << ENDL;
|
||||
}
|
||||
encountered_errors = true;
|
||||
flush();
|
||||
stream = stdout;
|
||||
if (raw_mode) raw_mode_status = max(raw_mode_status, type == MESSAGE_WARNING ? 1 : 2);
|
||||
}
|
||||
|
||||
bool TextIOHandler::shown_errors() const {
|
||||
return encountered_errors;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user