Store crash/desync logs in crash/desync savegame

Add console command to dump loaded debug log
This commit is contained in:
Jonathan G Rennison
2019-05-21 01:49:40 +01:00
parent 951a50ddd9
commit 5a9790a196
20 changed files with 90 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
#include "../../saveload/saveload.h"
#include "../../thread.h"
#include "../../screenshot.h"
#include "../../debug.h"
#include "macos.h"
#include <errno.h>
@@ -427,6 +428,7 @@ public:
}
printf("Writing crash savegame...\n");
_savegame_DBGL_data = buffer;
if (!this->WriteSavegame(filename_save, lastof(filename_save))) {
filename_save[0] = '\0';
ret = false;