}
extern sizebuf_t vm_tempstringsbuf;
+extern cvar_t prvm_errordump;
+void Host_Savegame_to (const char *name);
void PRVM_Crash(void)
{
if (prog == NULL)
PRVM_PrintState();
}
+ if(prvm_errordump.integer)
+ {
+ // make a savegame
+ Host_Savegame_to(va("crash-%s.dmp", PRVM_NAME));
+ }
+
// dump the stack so host_error can shutdown functions
prog->depth = 0;
prog->localstack_used = 0;