Mercurial > mm7
comparison Log.cpp @ 1297:5450af4f57ef
moving files mm7_x ending
author | Ritor1 |
---|---|
date | Wed, 19 Jun 2013 17:06:58 +0600 |
parents | 9c0607679772 |
children | 0356a84be1cf |
comparison
equal
deleted
inserted
replaced
1296:c423f946dc99 | 1297:5450af4f57ef |
---|---|
30 DWORD w; | 30 DWORD w; |
31 WriteConsole(hStdOut, pMsg, lstrlenW(pMsg), &w, nullptr); | 31 WriteConsole(hStdOut, pMsg, lstrlenW(pMsg), &w, nullptr); |
32 WriteConsole(hStdOut, L"\r\n", 2, &w, nullptr); | 32 WriteConsole(hStdOut, L"\r\n", 2, &w, nullptr); |
33 } | 33 } |
34 | 34 |
35 //----- (004BE386) -------------------------------------------------------- | |
36 void __fastcall log_error(const char *pMessage) | |
37 { | |
38 const char *v1; // edi@1 | |
39 FILE *f; // eax@1 | |
40 FILE *v3; // esi@1 | |
41 | |
42 v1 = pMessage; | |
43 f = fopen("errorlog.txt", "a"); | |
44 v3 = f; | |
45 if ( f ) | |
46 { | |
47 fprintf(f, "%s\n", v1); | |
48 fclose(v3); | |
49 fflush(v3); | |
50 } | |
51 } |