File diff r27843:9dff22cef669 → r27844:cf08d34d52cb
src/openttd.cpp
Show inline comments
 
@@ -109,25 +109,24 @@ NewGRFScanCallback *_request_newgrf_scan
 
 * @note Does NEVER return.
 
 */
 
void UserErrorI(const std::string &str)
 
{
 
	ShowOSErrorBox(str.c_str(), false);
 
	if (VideoDriver::GetInstance() != nullptr) VideoDriver::GetInstance()->Stop();
 

	
 
#ifdef __EMSCRIPTEN__
 
	emscripten_exit_pointerlock();
 
	/* In effect, the game ends here. As emscripten_set_main_loop() caused
 
	 * the stack to be unwound, the code after MainLoop() in
 
	 * openttd_main() is never executed. */
 
	EM_ASM(if (window["openttd_syncfs"]) openttd_syncfs());
 
	EM_ASM(if (window["openttd_abort"]) openttd_abort());
 
#endif
 

	
 
	exit(1);
 
}
 

	
 
/**
 
 * Error handling for fatal non-user errors.
 
 * @param str the string to print.
 
 * @note Does NEVER return.
 
 */
 
void FatalErrorI(const std::string &str)