mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-09 03:58:55 +01:00
Add small crash reports with crash details, CPU preflight check and eu07_starter
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include "version_info.h"
|
||||
#include "utilities/crashdump.h"
|
||||
|
||||
#if defined __has_attribute
|
||||
# if __has_attribute (init_priority)
|
||||
@@ -166,6 +167,8 @@ const std::string& crashreport_get_provider()
|
||||
|
||||
void crashreport_add_info(const char *name, const std::string &value)
|
||||
{
|
||||
crashdump_set_info(name, value);
|
||||
|
||||
char *copy = new char[value.size() + 1];
|
||||
strcpy(copy, value.c_str());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user