File diff r27710:ffce37a1a229 → r27711:e596f13ed70d
src/bootstrap_gui.cpp
Show inline comments
 
@@ -254,24 +254,32 @@ public:
 

	
 
			case WID_BAFD_NO:
 
				_exit_game = true;
 
				break;
 

	
 
			default:
 
				break;
 
		}
 
	}
 

	
 
	void OnConnect(bool success) override
 
	{
 
		if (!success) {
 
			UserError("Failed to connect to content server. Please acquire a graphics set for OpenTTD. See section 1.4 of README.md.");
 
			/* _exit_game is used to break out of the outer video driver's MainLoop. */
 
			_exit_game = true;
 
			this->Close();
 
			return;
 
		}
 

	
 
		/* Once connected, request the metadata. */
 
		_network_content_client.RequestContentList(CONTENT_TYPE_BASE_GRAPHICS);
 
	}
 

	
 
	void OnReceiveContentInfo(const ContentInfo *ci) override
 
	{
 
		/* And once the meta data is received, start downloading it. */
 
		_network_content_client.Select(ci->id);
 
		new BootstrapContentDownloadStatusWindow();
 
		this->Close();
 
	}
 
};