summaryrefslogtreecommitdiff
path: root/src/os/unix
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-16 19:08:33 +0000
committerrubidium <rubidium@openttd.org>2010-01-16 19:08:33 +0000
commit251ffaa000b66821ba3133db154336ab847f57b9 (patch)
tree7ee50b7519244f92e5e07c207f9266c4f9407bbe /src/os/unix
parent7e7ec4f25043e7218b6b40f5be42c71a3abc3a12 (diff)
downloadopenttd-251ffaa000b66821ba3133db154336ab847f57b9.tar.xz
(svn r18831) -Change [FS#3537]: do not go into the crashlog handler in case loading a savegame misses with missing NewGRFs. This way the load game crash handler gets better visibility and the user is instructed to find the missing NewGRFs before filing a bug report
Diffstat (limited to 'src/os/unix')
-rw-r--r--src/os/unix/crashlog_unix.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/os/unix/crashlog_unix.cpp b/src/os/unix/crashlog_unix.cpp
index c8314f5c8..72d023825 100644
--- a/src/os/unix/crashlog_unix.cpp
+++ b/src/os/unix/crashlog_unix.cpp
@@ -13,6 +13,7 @@
#include "../../crashlog.h"
#include "../../string_func.h"
#include "../../gamelog.h"
+#include "../../saveload/saveload.h"
#include <errno.h>
#include <signal.h>
@@ -156,6 +157,13 @@ static void CDECL HandleCrash(int signum)
abort();
}
+ if (SaveloadCrashWithMissingNewGRFs()) {
+ printf("A serious fault condition occured in the game. The game will shut down.\n");
+ printf("As you loaded an savegame for which you do not have the required NewGRFs\n");
+ printf("no crash information will be generated.\n");
+ abort();
+ }
+
CrashLogUnix log(signum);
log.MakeCrashLog();