Mercurial > mm7
diff Log.cpp @ 1297:5450af4f57ef
moving files mm7_x ending
author | Ritor1 |
---|---|
date | Wed, 19 Jun 2013 17:06:58 +0600 |
parents | 9c0607679772 |
children | 0356a84be1cf |
line wrap: on
line diff
--- a/Log.cpp Tue Jun 18 17:28:11 2013 +0600 +++ b/Log.cpp Wed Jun 19 17:06:58 2013 +0600 @@ -32,3 +32,20 @@ WriteConsole(hStdOut, L"\r\n", 2, &w, nullptr); } +//----- (004BE386) -------------------------------------------------------- +void __fastcall log_error(const char *pMessage) +{ + const char *v1; // edi@1 + FILE *f; // eax@1 + FILE *v3; // esi@1 + + v1 = pMessage; + f = fopen("errorlog.txt", "a"); + v3 = f; + if ( f ) + { + fprintf(f, "%s\n", v1); + fclose(v3); + fflush(v3); + } +} \ No newline at end of file