From b98019a4ba6cab21843b442e42b91239895b0961 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 22 Jan 2020 22:57:28 +0100 Subject: [PATCH] - added some debug asserts to the savegame symbol code so that it always breaks into the debugger in case of a symbol error. --- source/sw/src/save.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/sw/src/save.cpp b/source/sw/src/save.cpp index 83cd40331..dd75fe1c9 100644 --- a/source/sw/src/save.cpp +++ b/source/sw/src/save.cpp @@ -150,6 +150,7 @@ int SaveSymDataInfo(MFILE_WRITE fil, void *ptr) { FILE *fp; + assert(false); fp = fopen("savegame symbols missing.txt", "a"); if (fp) { @@ -172,6 +173,7 @@ static int SaveSymCodeInfo_raw(MFILE_WRITE fil, void *ptr) { FILE *fp; + assert(false); fp = fopen("savegame symbols missing.txt", "a"); if (fp) {