aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-22 12:17:21 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-22 12:17:21 +0000
commitc37d62fd1b979bc6758ad72d12346baba0f9b69f (patch)
tree304f44610fded486b1e19a48ecc6cf1d22397498 /main.cpp
parentc28783ee430b106b636bf636bddf0799126a19d5 (diff)
downloadbullet-lab-remix-c37d62fd1b979bc6758ad72d12346baba0f9b69f.tar.xz
Modify "Achromatopsia". Report build and version in the log file.
Fix crashes in mingw-64 build.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 34a8d68..7f41e9f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -832,12 +832,22 @@ int main(int argc,char *argv[])
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);