Add version to asserts screen (#158)

* Add version info to asserts

* Add gMAXITEMS_READ to arms dealer init assert
This commit is contained in:
rftrdev
2023-05-27 12:02:54 -07:00
committed by GitHub
parent 119c6fe6bb
commit c13a44c445
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -43,6 +43,9 @@
#endif
#include "GameSettings.h"
#include "SaveLoadGame.h"
#include "Font.h"
#include "GameVersion.h"
#include "Text.h"
#include "debug_util.h"
@@ -408,6 +411,8 @@ void _FailMessage(const char* message, unsigned lineNum, const char * functionNa
sgp::dumpStackTrace(message);
mprintf( 10, 10, L"%s: %s %S %s", pMessageStrings[ MSG_VERSION ], zProductLabel, czVersionString, zBuildInformation );
std::stringstream basicInformation;
basicInformation << "Assertion Failure [Line " << lineNum;
if (functionName) {