Changes to SHA logging

This commit is contained in:
igor725 2018-10-26 06:38:03 +03:00
parent 2acb32c1cd
commit 859bec6844
2 changed files with 3 additions and 4 deletions

View File

@ -76,10 +76,6 @@ typedef struct Bitmap_ { uint8_t* Scan0; int Width, Height; } Bitmap;
#endif
#endif
#ifndef CC_COMMIT_SHA
#define CC_COMMIT_SHA "Unknown"
#endif
#ifdef CC_BUILD_D3D9
typedef void* GfxResourceID;
#define GFX_NULL NULL

View File

@ -641,7 +641,10 @@ static void ErrorHandler_FailCommon(ReturnCode result, const char* raw_msg, void
String msg = String_NT_Array(msgBuffer);
String_Format3(&msg, "ClassiCube crashed.%cMessage: %c%c", Platform_NewLine, raw_msg, Platform_NewLine);
#ifdef CC_COMMIT_SHA
String_Format2(&msg, "Commit SHA: %c%c", CC_COMMIT_SHA, Platform_NewLine);
#endif
if (result) {
String_Format2(&msg, "%h%c", &result, Platform_NewLine);