From c37d62fd1b979bc6758ad72d12346baba0f9b69f Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Sat, 22 Mar 2014 12:17:21 +0000 Subject: Modify "Achromatopsia". Report build and version in the log file. Fix crashes in mingw-64 build. --- main.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 34a8d68..7f41e9f 100644 --- a/main.cpp +++ b/main.cpp @@ -831,13 +831,23 @@ int main(int argc,char *argv[]) else hge->System_SetState(HGE_LOGFILE, "BLRLOG.txt"); hge->System_Log("%s: Bullet Lab Remix Log File",MAIN_SRC_FN); +#ifdef WIN32 +#ifdef MINGW_BUILD + hge->System_Log("%s: Build: MinGW_w64 cross build",MAIN_SRC_FN); +#else + hge->System_Log("%s: Build: Win32 build",MAIN_SRC_FN); +#endif +#else + hge->System_Log("%s: Build: Unix build",MAIN_SRC_FN); +#endif + hge->System_Log("%s: Version: %s",BLRVERSION); #ifdef WIN32 if (_mkdir("./Resources")!=0||_mkdir("./Resources/Music")!=0) Error("Cannot decompress resources!\nDetailed Information: An error occured while creating folder.\n\nTry restarting the game."); - hge->System_Log("Folders created successfully."); + hge->System_Log("%s: Folders created successfully.",MAIN_SRC_FN); Expand("BLRData.dtp","Resources"); Expand("BLRMusic.dtp","Resources/Music"); - hge->System_Log("Resources decompressed successfully."); + hge->System_Log("%s: Resources decompressed successfully.",MAIN_SRC_FN); #endif hge->System_SetState(HGE_FRAMEFUNC, FrameFunc); hge->System_SetState(HGE_FOCUSLOSTFUNC, Foclost); -- cgit v1.2.3