mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-20 13:15:16 -04:00
minidump integration
This commit is contained in:
parent
96eaeb4851
commit
b459f2010e
9 changed files with 130 additions and 21 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "../platform/error.h"
|
||||
#include "../platform/platform.h"
|
||||
|
||||
|
||||
#include <ctype.h>
|
||||
#define console_max_characters 120
|
||||
#define console_max_lines 300
|
||||
|
@ -89,6 +90,8 @@ void show_flags(int number,char **flags,char nums)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void spell_group_invis()
|
||||
{
|
||||
int i;
|
||||
|
@ -245,6 +248,11 @@ static void console_add_line(const char *line) {
|
|||
console_add_line_s(line, strlen(line));
|
||||
}
|
||||
|
||||
static void crash_task(va_list lst) {
|
||||
char *c = (char *)0x1;
|
||||
*c = 1;
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
char *cmd_buffer;
|
||||
const char *command;
|
||||
|
@ -645,6 +653,13 @@ static int process_with_params(const char *cmd, const char *args) {
|
|||
return 1;
|
||||
}
|
||||
if (istrcmp(cmd, "crash") == 0) {
|
||||
if (istrcmp(args,"seh") == 0) {
|
||||
char *c = (char *)(args - (uintptr_t)args);
|
||||
*c = 'x';
|
||||
}
|
||||
else if (istrcmp(args, "task") == 0) {
|
||||
add_task(65536,crash_task);
|
||||
}
|
||||
throw_exception(args);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue