Changeset - r25049:127b8ea73a3c
[Not reviewed]
master
0 1 0
Patric Stout - 3 years ago 2021-03-13 11:31:24
truebrain@openttd.org
Fix: errors during bootstrap could still show up after bootstrap

For example, if you have a config that defines OpenGFX as baseset
but for some reason you have no basesets anymore. In that case
bootstrap downloads OpenGFX for you, but it will still show the
error that "OpenGFX was not found" after the bootstrap. This was
an error generated before the bootstrapped kicked in.

Simply muting all errors during bootstrap solves this; as we cannot
show them anyway, this is fine. Any errors that remain after
bootstrap will be generated again anyway.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/error_gui.cpp
Show inline comments
 
@@ -396,6 +396,7 @@ void ShowErrorMessage(StringID summary_m
 

	
 
	bool no_timeout = wl == WL_CRITICAL;
 

	
 
	if (_game_mode == GM_BOOTSTRAP) return;
 
	if (_settings_client.gui.errmsg_duration == 0 && !no_timeout) return;
 

	
 
	ErrorMessageData data(summary_msg, detailed_msg, no_timeout ? 0 : _settings_client.gui.errmsg_duration, x, y, textref_stack_grffile, textref_stack_size, textref_stack);
0 comments (0 inline, 0 general)